blob: 26665380e9ad69a1fe805a9ad40ac1fbc02e8992 [file] [log] [blame]
---
#file: roles/dns-unbound/tasks/main.yml
# OS specific vars
- include_vars: "{{ ansible_os_family }}.yml"
# Debian specific installation
- include: unbound-Debian.yml
when: ansible_os_family == 'Debian'
- name: create unbound.conf from template
template:
src=unbound.conf.j2
dest={{ unbound_conf }}
mode=0644 owner=root group={{ unbound_group }}
# validate='unbound-checkconf %s' - can't use, checks path, not just config.
notify:
- restart-unbound