init empty unbound role
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: ensure /etc/unbound exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/unbound
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: deploy unbound config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/unbound/{{ item }}"
|
||||
mode: "0744"
|
||||
loop:
|
||||
- unbound.conf
|
||||
notify: restart unbound
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: install unbound
|
||||
ansible.builtin.package:
|
||||
name: unbound
|
||||
state: present
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: include unbound install
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
|
||||
- name: include unbound configurure
|
||||
ansible.builtin.include_tasks: configure.yml
|
||||
Reference in New Issue
Block a user