diff --git a/roles/nameserver/templates/unbound_network.conf.j2 b/roles/nameserver/templates/unbound_network.conf.j2 index bc54174..0f349bf 100644 --- a/roles/nameserver/templates/unbound_network.conf.j2 +++ b/roles/nameserver/templates/unbound_network.conf.j2 @@ -9,7 +9,7 @@ server: interface: 127.0.0.53 interface: ::1 outgoing-interface: {{ ansible_default_ipv4.address }} - {% if ansible_default_ipv6 is defined %} + {% if ansible_default_ipv6.address is defined %} outgoing-interface: {{ ansible_default_ipv6.address }} {% endif %} access-control: 192.168.1.0/24 allow