From ddb0132e5af13dbd455d64f90d6046613d7a959f Mon Sep 17 00:00:00 2001 From: darrindg91 <108228512+darrindg91@users.noreply.github.com> Date: Fri, 26 Aug 2022 09:16:24 +0200 Subject: [PATCH] Update zones.yml fixes #195 --- tasks/zones.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/zones.yml b/tasks/zones.yml index 3e4a2878..b2e2e36b 100644 --- a/tasks/zones.yml +++ b/tasks/zones.yml @@ -118,7 +118,7 @@ loop_control: label: "{{ item.1 }}" when: > - (item.create_reverse_zones is not defined or item.create_reverse_zones) and + (item[0].create_reverse_zones is not defined or item[0].create_reverse_zones) and ((item[0].type is defined and item[0].type == 'primary') or (item[0].type is not defined and item[0].primaries is defined and (host_all_addresses | intersect(item[0].primaries) | length > 0))) @@ -143,7 +143,7 @@ loop_control: label: "{{ item.1 }}" when: > - (item.create_reverse_zones is not defined or item.create_reverse_zones) and + (item[0].create_reverse_zones is not defined or item[0].create_reverse_zones) and ((item[0].type is defined and item[0].type == 'primary') or (item[0].type is not defined and item[0].primaries is defined and (host_all_addresses | intersect(item[0].primaries) | length > 0)))