unbound: Add support for copying zone files
This commit is contained in:
parent
2329b5d5e6
commit
3b2c2a453e
11 changed files with 28 additions and 53 deletions
|
@ -15,6 +15,17 @@
|
|||
creates: "{{ unbound_control_key }}"
|
||||
notify: Restart unbound
|
||||
|
||||
- name: Copy zone files
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ unbound_zonedir }}/{{ item }}"
|
||||
src: "/srv/dns/{{ item }}"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
with_items: "{{ unbound_zones }}"
|
||||
notify: Restart unbound
|
||||
when: unbound_zones is defined
|
||||
|
||||
- name: Copy config
|
||||
ansible.builtin.template:
|
||||
dest: "{{ unbound_conf }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue