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
|
|
@ -3,7 +3,7 @@
|
|||
| selectattr('enabled') %}
|
||||
{% for address in iface.ip_addresses | selectattr("family.value", "==", 6) %}
|
||||
{# get the gateway for this subnet #}
|
||||
{% set subnet = address.address | ipaddr('subnet') %}
|
||||
{% set subnet = address.address | ansible.utils.ipaddr('subnet') %}
|
||||
{% set prefix = prefixes | selectattr('prefix', '==', subnet) | first %}
|
||||
{% set gateway = prefix.custom_fields.gateway.address %}
|
||||
{# if we are gateway, send RAs on this interface #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue