fix fact gathering, rename role
This commit is contained in:
parent
b79fb76f25
commit
0e6228b751
4 changed files with 3 additions and 3 deletions
16
roles/manage-records/tasks/main.yml
Normal file
16
roles/manage-records/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: "create records ({{domain}})"
|
||||
cloudflare_dns:
|
||||
zone: "{{ domain }}"
|
||||
record: "{{ record.name }}"
|
||||
value: "{{ record.value }}"
|
||||
type: "{{ record.type }}"
|
||||
solo: yes
|
||||
state: present
|
||||
account_email: "{{ cf_email }}"
|
||||
account_api_token: "{{ cf_token }}"
|
||||
loop: "{{ records }}"
|
||||
loop_control:
|
||||
loop_var: record
|
||||
when: (item.state is undefined) or (not item.state == 'absent')
|
Loading…
Add table
Add a link
Reference in a new issue