From 9c843d35d3ad444b33dc8777e26371b863c63821 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 13 May 2020 13:03:53 +0200 Subject: [PATCH] fix defaults --- tasks/setup.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/setup.yml b/tasks/setup.yml index 085a363..8584b44 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -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 }}"