Skip adding interfaces to DNS that don't have an associated IP address
This commit is contained in:
parent
128b3bd982
commit
1792066f49
@ -44,6 +44,7 @@
|
|||||||
value:
|
value:
|
||||||
- "{{ item.ip_addresses[0].address | regex_replace('/.*', '') }}"
|
- "{{ item.ip_addresses[0].address | regex_replace('/.*', '') }}"
|
||||||
with_items: "{{ interfaces }}"
|
with_items: "{{ interfaces }}"
|
||||||
|
when: item.ip_addresses[0].address is defined
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.display }}"
|
label: "{{ item.display }}"
|
||||||
tags: [ route53, dns, interface ]
|
tags: [ route53, dns, interface ]
|
||||||
|
Loading…
Reference in New Issue
Block a user