New ansible support (again)

This commit is contained in:
Miha Frangež 2026-02-23 16:54:47 +01:00 committed by jetomit
parent 3ff4ed5a77
commit 518c3bc7b8
12 changed files with 33 additions and 33 deletions

View file

@ -4,8 +4,8 @@
| map(attribute='ip_addresses') | first
| selectattr('role') | selectattr('role.value', '==', 'loopback')
| map(attribute='address') %}
{% set ip = lo_address | ipv4 | first %}
{% set ip6 = lo_address | ipv6 | first -%}
{% set ip = lo_address | ansible.utils.ipv4 | first %}
{% set ip6 = lo_address | ansible.utils.ipv6 | first -%}
auto inside
iface inside
@ -38,4 +38,4 @@ iface peerlink.2
auto peerlink.4
iface peerlink.4
vrf outside
address {{ "169.254.1.0/24" | ipaddr(exit + 1) }}
address {{ "169.254.1.0/24" | ansible.utils.ipaddr(exit + 1) }}