unbound: Add OpenBSD support

This commit is contained in:
Timo Makinen 2021-03-25 21:49:20 +00:00
parent 16955006d1
commit 12ec078011
3 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1,3 @@
---
unbound_conf: /var/unbound/etc/unbound.conf
unbound_control_key: /var/unbound/etc/unbound_control.key

View file

@ -0,0 +1,3 @@
---
unbound_conf: /etc/unbound/unbound.conf
unbound_control_key: /etc/unbound/unbound_control.key