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
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: unbound
|
name: unbound
|
||||||
|
@ -9,12 +12,12 @@
|
||||||
command:
|
command:
|
||||||
argv:
|
argv:
|
||||||
- unbound-control-setup
|
- unbound-control-setup
|
||||||
creates: /etc/unbound/unbound_control.key
|
creates: "{{ unbound_control_key }}"
|
||||||
notify: restart unbound
|
notify: restart unbound
|
||||||
|
|
||||||
- name: copy config
|
- name: copy config
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/unbound/unbound.conf
|
dest: "{{ unbound_conf }}"
|
||||||
src: "unbound.conf.{{ inventory_hostname }}"
|
src: "unbound.conf.{{ inventory_hostname }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
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
Add a link
Reference in a new issue