ipaddr was moved to ansible.utils
This commit is contained in:
parent
8276c6e8b4
commit
32ddf5e58e
9 changed files with 16 additions and 16 deletions
|
|
@ -6,7 +6,7 @@
|
|||
agents = [
|
||||
{% for address in query("netbox.netbox.nb_lookup", "devices", api_filter=snmp_hosts, raw_data=true)
|
||||
| selectattr("primary_ip4") | map(attribute="primary_ip4.address")
|
||||
| ipaddr("int") | sort | ipaddr("address") %}
|
||||
| ansible.utils.ipaddr("int") | sort | ansible.utils.ipaddr("address") %}
|
||||
"{{ address }}",
|
||||
{% endfor %}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue