fix fact gathering, rename role
This commit is contained in:
parent
b79fb76f25
commit
0e6228b751
4 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
nocows=True
|
nocows=True
|
||||||
localhost_warning=False
|
localhost_warning=False
|
||||||
|
gathering=smart
|
5
play.yml
5
play.yml
|
@ -2,7 +2,6 @@
|
||||||
- name: create cloudflare dns records
|
- name: create cloudflare dns records
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
gather_facts: smart
|
|
||||||
vars:
|
vars:
|
||||||
domains:
|
domains:
|
||||||
- sampledomain.local
|
- sampledomain.local
|
||||||
|
@ -10,8 +9,8 @@
|
||||||
- name: import cloudflare creds
|
- name: import cloudflare creds
|
||||||
include_vars:
|
include_vars:
|
||||||
file: "~/.cloudflare.yml"
|
file: "~/.cloudflare.yml"
|
||||||
- name: "create-records: include role"
|
- name: "manage-records: include role"
|
||||||
include_role:
|
include_role:
|
||||||
name: create-records
|
name: manage-records
|
||||||
vars_from: "{{item}}"
|
vars_from: "{{item}}"
|
||||||
with_items: "{{domains}}"
|
with_items: "{{domains}}"
|
||||||
|
|
Loading…
Reference in a new issue