cfdns/play.yml

16 lines
382 B
YAML

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