xoxys.cloudflare_dns/tasks/setup.yml
Robert Kaussow 0394f8bc82
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2021-02-25 21:14:35 +01:00

15 lines
634 B
YAML

---
- name: Create DNS records
cloudflare_dns:
api_token: "{{ cloudflare_dns_api_token }}"
zone: "{{ item.zone | default(cloudflare_dns_default_zone) }}"
record: "{{ item.record | default(omit) }}"
type: "{{ item.type | default(omit) }}"
solo: "{{ item.solo | default(omit) }}"
value: "{{ item.value | default(omit) }}"
state: "{{ item.state | default('present') }}"
loop: "{{ cloudflare_dns_records + cloudflare_dns_records_extra }}"
loop_control:
label: "{{ item.zone | default(cloudflare_dns_default_zone) }}:{{ item.record | default('@') }}"
delegate_to: "{{ cloudflare_dns_delegate_to }}"