27 lines
616 B
YAML
27 lines
616 B
YAML
- name: nameserver | unbound | install packages
|
|
package:
|
|
name: "{{ unbound_package }}"
|
|
state: present
|
|
|
|
- name: nameserver | unbound | copy config
|
|
template:
|
|
src: "unbound_network.conf.j2"
|
|
dest: "/etc/unbound/unbound.conf.d/network.conf"
|
|
mode: "0644"
|
|
owner: "root"
|
|
group: "root"
|
|
validate: "unbound-checkconf %s"
|
|
force: no
|
|
|
|
- name: nameserver | unbound | disable service pdns-resolver
|
|
service:
|
|
name: "powerdns-resolver"
|
|
state: stopped
|
|
enabled: False
|
|
|
|
- name: nameserver | unbound | enable service
|
|
service:
|
|
name: "unbound"
|
|
state: started
|
|
enabled: True
|