Fix ipaddr call for new ansible
The ipaddr filter was moved to ansible.utils sometime after 2.18.
This commit is contained in:
parent
8276c6e8b4
commit
e93cdfd1dd
9 changed files with 17 additions and 17 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{% set lo = hostvars[inventory_hostname].interfaces | selectattr('name', '==', 'lo') | first %}
|
||||
{% set vxlan_ip = lo.ip_addresses | selectattr('family.value', '==', 4)
|
||||
| map(attribute='address') | first
|
||||
| ipaddr('address') %}
|
||||
| ansible.utils.ipaddr('address') %}
|
||||
iface lo
|
||||
# without this the local tunnel IP is sometimes advertised as 0.0.0.0 on boot
|
||||
vxlan-local-tunnelip {{ vxlan_ip }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue