1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_unbound.git synced 2024-08-16 13:39:49 +02:00
ansible_role_unbound/tasks/main.yml

30 lines
575 B
YAML
Raw Normal View History

2018-03-10 19:18:04 +01:00
---
- name: Install unbound
apt:
pkg: '{{ item }}'
state: 'latest'
update_cache: yes
cache_valid_time: 43200
with_items:
- unbound
- name: Copy unbound configuration snippets
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'
- name: Copy main unbound configuration
copy:
src: 'unbound.conf'
dest: '/etc/unbound/unbound.conf'
owner: root
group: root
mode: 'u=rw,g=r,o=r'
notify:
- restart unbound