fix fact gathering, rename role

This commit is contained in:
Josh Lay 2022-04-20 23:22:01 -05:00
parent b79fb76f25
commit 0e6228b751
Signed by: jlay
GPG key ID: B265E45CACAD108A
4 changed files with 3 additions and 3 deletions

View 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')