fix defaults
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-05-13 13:03:53 +02:00
parent b5c13c2149
commit 9c843d35d3

View File

@ -18,12 +18,12 @@
- name: Create DNS records
corenetworks_dns:
api_token: "{{ __corenetworks.session.token }}"
zone: "{{ item.zone | default('corenetworks_dns_default_zone') }}"
zone: "{{ item.zone | default(corenetworks_dns_default_zone) }}"
record: "{{ item.record | default(omit) }}"
type: "{{ item.type | default(omit) }}"
value: "{{ item.value | default(omit) }}"
state: "{{ item.state | default('present') }}"
loop: "{{ corenetworks_dns_records + corenetworks_dns_records_extra }}"
loop_control:
label: "{{ item.zone | default('corenetworks_dns_default_zone') }}:{{ item.record | default('@') }}"
label: "{{ item.zone | default(corenetworks_dns_default_zone) }}:{{ item.record | default('@') }}"
delegate_to: "{{ corenetworks_dns_delegate_to }}"