Change os-specific variable name, fix rights
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user