cfdns/play.yml

18 lines
402 B
YAML
Raw Normal View History

2020-08-22 06:45:15 +00:00
---
- name: create cloudflare dns records
hosts: localhost
connection: local
gather_facts: smart
vars:
domains:
- sampledomain.local
tasks:
2021-12-19 03:44:35 +00:00
- 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}}"