Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 1 | --- |
| 2 | #file: roles/dns-unbound/tasks/main.yml |
| 3 | |
Zack Williams | 6f5a6e7 | 2016-08-10 17:45:27 -0700 | [diff] [blame] | 4 | - name: Include OS specific vars |
| 5 | include_vars: "{{ ansible_os_family }}.yml" |
Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 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: |
Zack Williams | bf43d75 | 2017-07-01 15:27:11 -0700 | [diff] [blame] | 13 | src: unbound.conf.j2 |
| 14 | dest: "{{ unbound_conf }}" |
| 15 | mode: 0644 |
| 16 | owner: root |
| 17 | group: "{{ unbound_group }}" |
Zack Williams | 99adf6b | 2016-03-14 17:01:08 -0700 | [diff] [blame] | 18 | # validate='unbound-checkconf %s' - can't use, checks path, not just config. |
| 19 | notify: |
| 20 | - restart-unbound |
| 21 | |