fabric: fix a template

This worked. Updated ansible. Then it didn’t.
This commit is contained in:
Timotej Lazar 2024-08-15 17:22:55 +02:00
parent 14d2e00f0b
commit 5032d1ac84

View file

@ -46,7 +46,7 @@ iface {{ iface.name }}
{% if iface.count_fhrp_groups > 0 %}
{% set fhrp_assignment = fhrp_assignments | selectattr('interface.id', '==', iface.id) | first %}
{% set fhrp_group = fhrp_groups | selectattr('id', '==', fhrp_assignment.group.id) | first %}
address-virtual 00:00:5e:00:01:01 {{ fhrp_group.ip_addresses | sort(attribute='family') | map(attribute='address') | join(' ') }}
address-virtual 00:00:5e:00:01:01 {{ fhrp_group.ip_addresses | sort(attribute='family.value') | map(attribute='address') | join(' ') }}
{% endif %}
{% endfor %}