2020-08-22 06:45:15 +00:00
|
|
|
---
|
|
|
|
- name: create cloudflare dns records
|
|
|
|
hosts: localhost
|
|
|
|
connection: local
|
|
|
|
gather_facts: smart
|
2021-12-19 03:30:46 +00:00
|
|
|
vars:
|
|
|
|
domains:
|
2021-12-19 03:36:38 +00:00
|
|
|
- sampledomain.local
|
2021-12-19 03:30:46 +00:00
|
|
|
tasks:
|
2021-12-19 03:44:35 +00:00
|
|
|
- name: import cloudflare creds
|
|
|
|
include_vars:
|
|
|
|
file: "~/.cloudflare.yml"
|
2021-12-19 03:47:30 +00:00
|
|
|
- name: "create-records: include role"
|
2021-12-19 03:30:46 +00:00
|
|
|
include_role:
|
|
|
|
name: create-records
|
|
|
|
vars_from: "{{item}}"
|
|
|
|
with_items: "{{domains}}"
|