unbound: Add OpenBSD support
This commit is contained in:
parent
16955006d1
commit
12ec078011
3 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
- name: include OS-specific variables
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: install packages
|
||||
package:
|
||||
name: unbound
|
||||
|
@ -9,12 +12,12 @@
|
|||
command:
|
||||
argv:
|
||||
- unbound-control-setup
|
||||
creates: /etc/unbound/unbound_control.key
|
||||
creates: "{{ unbound_control_key }}"
|
||||
notify: restart unbound
|
||||
|
||||
- name: copy config
|
||||
copy:
|
||||
dest: /etc/unbound/unbound.conf
|
||||
dest: "{{ unbound_conf }}"
|
||||
src: "unbound.conf.{{ inventory_hostname }}"
|
||||
mode: 0644
|
||||
owner: root
|
||||
|
|
3
roles/unbound/vars/OpenBSD.yml
Normal file
3
roles/unbound/vars/OpenBSD.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
unbound_conf: /var/unbound/etc/unbound.conf
|
||||
unbound_control_key: /var/unbound/etc/unbound_control.key
|
3
roles/unbound/vars/RedHat.yml
Normal file
3
roles/unbound/vars/RedHat.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
unbound_conf: /etc/unbound/unbound.conf
|
||||
unbound_control_key: /etc/unbound/unbound_control.key
|
Loading…
Add table
Reference in a new issue