blob: 26665380e9ad69a1fe805a9ad40ac1fbc02e8992 [file] [log] [blame]
Zack Williams99adf6b2016-03-14 17:01:08 -07001---
2#file: roles/dns-unbound/tasks/main.yml
3
4# OS specific vars
5- include_vars: "{{ ansible_os_family }}.yml"
6
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