First test version
This commit is contained in:
28
tasks/main.yml
Normal file
28
tasks/main.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
- name: unbound | Load system-specific vars
|
||||
include_vars: "{{ ansible_system | lower }}.yml"
|
||||
|
||||
- name: unbound | Install package
|
||||
package:
|
||||
name: unbound
|
||||
state: present
|
||||
|
||||
- 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 }}"
|
||||
validate: "unbound-checkconf %s"
|
||||
notify: unbound | Reload configuration
|
||||
|
||||
- name: unbound | Enable and start unbound
|
||||
service:
|
||||
name: unbound
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: unbound | Run handlers
|
||||
meta: flush_handlers
|
Reference in New Issue
Block a user