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

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