feat: improve unbound config location
This commit is contained in:
parent
f36116e920
commit
6216bbbbf1
2 changed files with 13 additions and 4 deletions
|
|
@ -3,10 +3,19 @@
|
||||||
# configure unbound
|
# configure unbound
|
||||||
- name: "config - unbound"
|
- name: "config - unbound"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}"
|
src: "templates/unbound/unbound.conf.j2"
|
||||||
dest: "/etc/unbound/unbound.conf.d/"
|
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"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
with_fileglob: "templates/unbound/*.j2"
|
|
||||||
notify: "restart unbound"
|
notify: "restart unbound"
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ server:
|
||||||
use-caps-for-id: no
|
use-caps-for-id: no
|
||||||
|
|
||||||
# include zone configurations
|
# include zone configurations
|
||||||
include: "/etc/unbound/conf.d/*.conf"
|
include: "/etc/unbound/zones.conf"
|
||||||
|
|
||||||
# forward zones configuration
|
# forward zones configuration
|
||||||
forward-zone:
|
forward-zone:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue