Robert Kaussow
0394f8bc82
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
634 B
YAML
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 }}"
|