cfdns/play.yml

17 lines
402 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: "enforce state for {{item}}"
include_role:
name: create-records
vars_from: "{{item}}"
with_items: "{{domains}}"