cfdns/play.yml

17 lines
404 B
YAML

---
- name: create cloudflare dns records
hosts: localhost
connection: local
gather_facts: smart
vars:
domains:
- sampledomain.local
tasks:
- name: import cloudflare creds
include_vars:
file: "~/.cloudflare.yml"
- name: "create-records: include role"
include_role:
name: create-records
vars_from: "{{item}}"
with_items: "{{domains}}"