blob: 03a80d37210c83ca11702c48a2a8431d9c5f9108 [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:
13 src=unbound.conf.j2
14 dest={{ unbound_conf }}
15 mode=0644 owner=root group={{ unbound_group }}
16 # validate='unbound-checkconf %s' - can't use, checks path, not just config.
17 notify:
18 - restart-unbound
19