diff --git a/playbooks/local_dns.yml b/playbooks/local_dns.yml index 4402f7b..09a4063 100755 --- a/playbooks/local_dns.yml +++ b/playbooks/local_dns.yml @@ -44,6 +44,7 @@ value: - "{{ item.ip_addresses[0].address | regex_replace('/.*', '') }}" with_items: "{{ interfaces }}" + when: item.ip_addresses[0].address is defined loop_control: label: "{{ item.display }}" tags: [ route53, dns, interface ]