Change os-specific variable name, fix rights

master
Oleg Vasilev 2021-12-27 23:58:17 +03:00
parent b685dcbb0f
commit 44fa5a53cc
4 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

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

View File

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