unbound: Don't hardcode zones

This commit is contained in:
Timo Makinen 2024-05-09 18:42:42 +00:00
parent 3b2c2a453e
commit fd495036f2
5 changed files with 20 additions and 25 deletions

View file

@ -26,9 +26,8 @@ remote-control:
control-enable: yes
control-interface: /var/run/unbound.sock
{% for zone in unbound_zones %}
auth-zone:
name: "home.foo.sh"
zonefile: "/var/unbound/db/home.foo.sh"
auth-zone:
name: "20.172.in-addr.arpa"
zonefile: "/var/unbound/db/20.172.in-addr.arpa"
name: "{{ zone }}"
zonefile: "{{ unbound_zonedir }}/{{ zone }}"
{% endfor %}