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
|
|
@ -8,5 +8,5 @@ ff02::2 ip6-allrouters
|
|||
ff02::3 ip6-allhosts
|
||||
|
||||
{% for address in interfaces | selectattr('name', '==', 'lo') | map(attribute='ip_addresses') | first %}
|
||||
{{ address.address | ipaddr('address') }} {{ address.dns_name }} {{ inventory_hostname }}
|
||||
{{ address.address | ansible.utils.ipaddr('address') }} {{ address.dns_name }} {{ inventory_hostname }}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue