include credentials only once
This commit is contained in:
parent
2def875433
commit
e538a528d1
2 changed files with 3 additions and 4 deletions
3
play.yml
3
play.yml
|
@ -7,6 +7,9 @@
|
||||||
domains:
|
domains:
|
||||||
- sampledomain.local
|
- sampledomain.local
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: import cloudflare creds
|
||||||
|
include_vars:
|
||||||
|
file: "~/.cloudflare.yml"
|
||||||
- name: "enforce state for {{item}}"
|
- name: "enforce state for {{item}}"
|
||||||
include_role:
|
include_role:
|
||||||
name: create-records
|
name: create-records
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: import cloudflare creds
|
|
||||||
include_vars:
|
|
||||||
file: "~/.cloudflare.yml"
|
|
||||||
|
|
||||||
- name: "create records ({{domain}})"
|
- name: "create records ({{domain}})"
|
||||||
cloudflare_dns:
|
cloudflare_dns:
|
||||||
zone: "{{ domain }}"
|
zone: "{{ domain }}"
|
||||||
|
|
Loading…
Reference in a new issue