19 lines
403 B
YAML
19 lines
403 B
YAML
- name: Install Unbound
|
|
apt:
|
|
install_recommends: no
|
|
name: unbound
|
|
state: present
|
|
cache_valid_time: 3600
|
|
- name: Copy configuration files
|
|
copy:
|
|
follow: yes
|
|
src: roles/dns/files/
|
|
dest: /etc/unbound/
|
|
notify:
|
|
- reload unbound
|
|
- name: Enable unbound in systemd
|
|
systemd:
|
|
name: unbound
|
|
enabled: yes
|
|
state: started
|