Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 1 | --- |
| 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 | |