15 lines
361 B
YAML
15 lines
361 B
YAML
---
|
|
|
|
- name: create records
|
|
cloudflare_dns:
|
|
zone: "{{ item.name }}"
|
|
record: "{{ record.name }}"
|
|
value: "{{ record.value }}"
|
|
type: "{{ record.type }}"
|
|
solo: yes
|
|
account_email: "{{ cf_email }}"
|
|
account_api_token: "{{ cf_token }}"
|
|
loop: "{{ item.records }}"
|
|
loop_control:
|
|
loop_var: record
|
|
when: (not item.state == 'absent')
|