From 54e77e73cf667239a42ee4fb08cc6dfb4e681c6f Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Mon, 22 Jul 2024 15:17:21 +0200 Subject: [PATCH] new syntax --- roles/nameserver/templates/powerdns-recursor-custom-config.j2 | 2 +- roles/nameserver/templates/unbound_network.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nameserver/templates/powerdns-recursor-custom-config.j2 b/roles/nameserver/templates/powerdns-recursor-custom-config.j2 index 70ad75c..07d326a 100644 --- a/roles/nameserver/templates/powerdns-recursor-custom-config.j2 +++ b/roles/nameserver/templates/powerdns-recursor-custom-config.j2 @@ -1,4 +1,4 @@ allow-from = 192.168.1.0/24, 192.168.3.0/24, 172.16.0.0/24, 127.0.0.0/8 -local-address += {{ ansible_default_ipv4.address }} {% if wg_local_ip is defined %}, {{ wg_local_ip | ipaddr('address') }} {% else %} +local-address += {{ ansible_default_ipv4.address }} {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }} {% else %} local-port = {{ pdns-recursor-lport | default("53") }} query-local-address = {{ ansible_default_ipv4.address }} {% if ansible_default_ipv6.address is defined %}, {{ ansible_default_ipv6.address }} {% else %} \ No newline at end of file diff --git a/roles/nameserver/templates/unbound_network.conf.j2 b/roles/nameserver/templates/unbound_network.conf.j2 index 0f349bf..58de5f1 100644 --- a/roles/nameserver/templates/unbound_network.conf.j2 +++ b/roles/nameserver/templates/unbound_network.conf.j2 @@ -1,7 +1,7 @@ server: ip-freebind: yes {% if wg_local_ip is defined %} - interface: {{ wg_local_ip | ipaddr('address') }} + interface: {{ wg_local_ip | ansible.utils.ipaddr('address') }} {% else %} interface: {{ ansible_default_ipv4.address }} {% endif %}