Fix ipaddr call for new ansible

The ipaddr filter was moved to ansible.utils sometime after 2.18.
This commit is contained in:
Miha Frangež 2026-01-09 11:32:58 +01:00 committed by Timotej Lazar
parent 8276c6e8b4
commit e93cdfd1dd
9 changed files with 17 additions and 17 deletions

View file

@ -11,5 +11,5 @@ ff02::3 ip6-allhosts
| map(attribute='interfaces') | flatten
| map(attribute='ip_addresses') | flatten
| selectattr('dns_name') %}
{{ address.address | ipaddr('address') }} {{ address.dns_name }} {{ address.dns_name | split('.') | first }}
{{ address.address | ansible.utils.ipaddr('address') }} {{ address.dns_name }} {{ address.dns_name | split('.') | first }}
{% endfor %}