fix: Use new collection fcqn for ipaddr filter

This commit is contained in:
saibotk 2023-02-11 12:56:42 +01:00
parent f333dfc165
commit 454c79549a
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ traefik_ipv6:
# (see https://web.archive.org/web/20181113104036/https://docs.docker.com/v17.06/engine/userguide/networking/default_network/ipv6/#docker-ipv6-cluster)
subnet: "{{ ansible_default_ipv6.address | ipsubnet(64) | ipsubnet(80, 51966) }}"
# The traefik container will use this static address, unless you explicitly use `{{ omit }}`
ip_addr: "{{ ansible_default_ipv6.address | ipsubnet(64) | ipsubnet(80, 51966) | ipaddr('2') | ipaddr('address') }}"
ip_addr: "{{ ansible_default_ipv6.address | ipsubnet(64) | ipsubnet(80, 51966) | ansible.utils.ipaddr('2') | ansible.utils.ipaddr('address') }}"
# The name of the special ipv6 network which will be created and added to the traefik container
name: traefik_ipv6

View file

@ -143,7 +143,7 @@ services:
{% if traefik_ipv6.enabled %}
{{ traefik_ipv6.name }}:
{% if traefik_ipv6.ip_addr != omit %}
ipv6_address: {{ traefik_ipv6.ip_addr | ipaddr('address') }}
ipv6_address: {{ traefik_ipv6.ip_addr | ansible.utils.ipaddr('address') }}
{% endif %}
{% endif %}