ansible/roles/dns/tasks/main.yaml

22 lines
485 B
YAML
Raw Normal View History

2019-03-09 00:31:38 +00:00
---
- 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 }}"
2019-03-27 07:08:13 +00:00
# vim:ft=yaml.ansible: