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
|
||||
- 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue