From 454c79549a5af96306ffd41f6256f88c82cdf9a1 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sat, 11 Feb 2023 12:56:42 +0100 Subject: [PATCH] fix: Use new collection fcqn for ipaddr filter --- roles/traefik/defaults/main.yml | 2 +- roles/traefik/templates/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/traefik/defaults/main.yml b/roles/traefik/defaults/main.yml index 76de9ae..08882a1 100644 --- a/roles/traefik/defaults/main.yml +++ b/roles/traefik/defaults/main.yml @@ -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 diff --git a/roles/traefik/templates/docker-compose.yml b/roles/traefik/templates/docker-compose.yml index 64a7ea0..c2dc74e 100644 --- a/roles/traefik/templates/docker-compose.yml +++ b/roles/traefik/templates/docker-compose.yml @@ -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 %}