blob: cfd15465cada46288b4f08806a54062cd1fc60a3 [file] [log] [blame]
Zack Williams99adf6b2016-03-14 17:01:08 -07001---
2#file: roles/dns-unbound/tasks/main.yml
3
Zack Williams6f5a6e72016-08-10 17:45:27 -07004- name: Include OS specific vars
5 include_vars: "{{ ansible_os_family }}.yml"
Zack Williams99adf6b2016-03-14 17:01:08 -07006
7# Debian specific installation
8- include: unbound-Debian.yml
9 when: ansible_os_family == 'Debian'
10
11- name: create unbound.conf from template
12 template:
Zack Williamsbf43d752017-07-01 15:27:11 -070013 src: unbound.conf.j2
14 dest: "{{ unbound_conf }}"
15 mode: 0644
16 owner: root
17 group: "{{ unbound_group }}"
Zack Williams99adf6b2016-03-14 17:01:08 -070018 # validate='unbound-checkconf %s' - can't use, checks path, not just config.
19 notify:
20 - restart-unbound
21