2020-08-22 06:45:15 +00:00
|
|
|
---
|
|
|
|
- name: create cloudflare dns records
|
|
|
|
hosts: localhost
|
|
|
|
connection: local
|
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"
|
2022-04-21 04:22:01 +00:00
|
|
|
- name: "manage-records: include role"
|
2021-12-19 03:30:46 +00:00
|
|
|
include_role:
|
2022-04-21 04:22:01 +00:00
|
|
|
name: manage-records
|
2021-12-19 03:30:46 +00:00
|
|
|
vars_from: "{{item}}"
|
|
|
|
with_items: "{{domains}}"
|