mirror of
https://github.com/roles-ansible/ansible_role_unbound.git
synced 2024-08-16 13:39:49 +02:00
23 lines
570 B
YAML
23 lines
570 B
YAML
---
|
|
- name: Copy unbound configuration snippets
|
|
become: true
|
|
ansible.builtin.copy:
|
|
src: '{{ item }}'
|
|
dest: '/etc/unbound/unbound.conf.d/'
|
|
owner: root
|
|
group: root
|
|
mode: 'u=rw,g=r,o=r'
|
|
with_fileglob:
|
|
- 'files/snippets/*.conf'
|
|
notify: systemctl restart unbound
|
|
|
|
- name: Copy main unbound configuration
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: 'files/unbound.conf'
|
|
dest: '/etc/unbound/unbound.conf'
|
|
owner: root
|
|
group: root
|
|
mode: 'u=rw,g=r,o=r'
|
|
validate: unbound-checkconf %s
|
|
notify: systemctl restart unbound
|