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 ### 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 - name: unbound | Deploy config
template: template:
src: "{{ unbound_config_template }}" src: "{{ unbound_config_template }}"
dest: "{{ unbound_config.path }}" dest: "{{ unbound_config_props.path }}"
mode: "{{ unbound_config.mode }}" mode: "{{ unbound_config_props.mode }}"
owner: "{{ unbound_config.owner }}" owner: "{{ unbound_config_props.owner }}"
group: "{{ unbound_config.group }}" group: "{{ unbound_config_props.group }}"
validate: "unbound-checkconf %s" validate: "unbound-checkconf %s"
notify: unbound | Reload configuration notify: unbound | Reload configuration

View File

@ -2,8 +2,8 @@
unbound_install_package: yes unbound_install_package: yes
unbound_config: unbound_config_props:
path: /etc/unbound/unbound.conf path: /etc/unbound/unbound.conf
mode: 0600 mode: 0600
owner: unbound owner: unbound
group: unbound group: unbound

View File

@ -2,8 +2,8 @@
unbound_install_package: no unbound_install_package: no
unbound_config: unbound_config_props:
path: /var/unbound/etc/unbound.conf path: /var/unbound/etc/unbound.conf
mode: 644 mode: 0644
owner: root owner: root
group: wheel group: wheel