feat: improve unbound config location

This commit is contained in:
Simon Cornet 2025-07-14 15:37:00 +02:00
commit 6216bbbbf1
2 changed files with 13 additions and 4 deletions

View file

@ -3,10 +3,19 @@
# configure unbound
- name: "config - unbound"
ansible.builtin.template:
src: "{{ item }}"
dest: "/etc/unbound/unbound.conf.d/"
src: "templates/unbound/unbound.conf.j2"
dest: "/etc/unbound/unbound.conf"
owner: "root"
group: "root"
mode: "0644"
notify: "restart unbound"
# configure unbound zones
- name: "config - unbound zones"
ansible.builtin.template:
src: "templates/unbound/zones.conf.j2"
dest: "/etc/unbound/zones.conf"
owner: "root"
group: "root"
mode: "0644"
with_fileglob: "templates/unbound/*.j2"
notify: "restart unbound"

View file

@ -30,7 +30,7 @@ server:
use-caps-for-id: no
# include zone configurations
include: "/etc/unbound/conf.d/*.conf"
include: "/etc/unbound/zones.conf"
# forward zones configuration
forward-zone: