Change os-specific variable name, fix rights
parent
b685dcbb0f
commit
44fa5a53cc
|
@ -4,4 +4,4 @@ Ansible role for unbound
|
|||
|
||||
### Variables
|
||||
|
||||
Set `unbound_config_template` to templatefile you want deploy as unbound configuration
|
||||
Set `unbound_config_template` to template file you want to deploy as unbound configuration
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
- name: unbound | Deploy config
|
||||
template:
|
||||
src: "{{ unbound_config_template }}"
|
||||
dest: "{{ unbound_config.path }}"
|
||||
mode: "{{ unbound_config.mode }}"
|
||||
owner: "{{ unbound_config.owner }}"
|
||||
group: "{{ unbound_config.group }}"
|
||||
dest: "{{ unbound_config_props.path }}"
|
||||
mode: "{{ unbound_config_props.mode }}"
|
||||
owner: "{{ unbound_config_props.owner }}"
|
||||
group: "{{ unbound_config_props.group }}"
|
||||
validate: "unbound-checkconf %s"
|
||||
notify: unbound | Reload configuration
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
unbound_install_package: yes
|
||||
|
||||
unbound_config:
|
||||
path: /etc/unbound/unbound.conf
|
||||
mode: 0600
|
||||
unbound_config_props:
|
||||
path: /etc/unbound/unbound.conf
|
||||
mode: 0600
|
||||
owner: unbound
|
||||
group: unbound
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
unbound_install_package: no
|
||||
|
||||
unbound_config:
|
||||
path: /var/unbound/etc/unbound.conf
|
||||
mode: 644
|
||||
unbound_config_props:
|
||||
path: /var/unbound/etc/unbound.conf
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: wheel
|
||||
|
|
Loading…
Reference in New Issue