From bd40d3c58d8f231004c2e62876a0bf14a3fa91ab Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Wed, 10 Aug 2022 10:47:00 +0200 Subject: [PATCH] use local address if no wg address is set --- roles/nameserver/templates/unbound_network.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nameserver/templates/unbound_network.conf.j2 b/roles/nameserver/templates/unbound_network.conf.j2 index 9ffcdc4..bb0a035 100644 --- a/roles/nameserver/templates/unbound_network.conf.j2 +++ b/roles/nameserver/templates/unbound_network.conf.j2 @@ -1,6 +1,6 @@ server: ip-freebind: yes - {% if wg_local_ip %} + {% if wg_local_ip is defined %} interface: {{ wg_local_ip | ipaddr('address') }} {% else %} interface: {{ ansible_default_ipv4.address }}