ansible/roles/dns/tasks/main.yaml
2019-03-09 00:31:38 +00:00

20 lines
461 B
YAML

---
- name: install unbound
package:
name: "{{ unbound_package_name }}"
state: "{{ unbound_package_state }}"
- name: configure unbound
template:
src: forward.conf.j2
dest: /etc/unbound/unbound.conf.d/forward.conf
validate: 'unbound-checkconf %s'
notify:
- reload unbound
- name: start unbound
service:
name: "{{ unbound_service_name }}"
state: "{{ unbound_service_state }}"
enabled: "{{ unbound_service_enabled }}"