25 lines
470 B
YAML
25 lines
470 B
YAML
|
---
|
||
|
|
||
|
- name: install unbound
|
||
|
apt:
|
||
|
update_cache: true
|
||
|
name: unbound
|
||
|
state: present
|
||
|
|
||
|
- name: setup main unbound config file
|
||
|
template:
|
||
|
src: unbound.conf.j2
|
||
|
dest: /etc/unbound/unbound.conf
|
||
|
mode: 0644
|
||
|
|
||
|
- name: setup recursive DNS server config
|
||
|
template:
|
||
|
src: recursive.conf.j2
|
||
|
dest: /etc/unbound/unbound.conf.d/recursive.conf
|
||
|
mode: 0644
|
||
|
|
||
|
- name: restart unbound after editing config
|
||
|
systemd:
|
||
|
state: restarted
|
||
|
name: unbound
|