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 }}