feat: initial commit
This commit is contained in:
parent
dc073bf590
commit
f8ec658b1a
18 changed files with 328 additions and 93 deletions
12
tasks/config.yaml
Normal file
12
tasks/config.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
|
||||
# configure unbound
|
||||
- name: "config - unbound"
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/unbound/unbound.conf.d/"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
with_fileglob: "templates/unbound/*.j2"
|
||||
notify: "restart unbound"
|
||||
7
tasks/install.yaml
Normal file
7
tasks/install.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
# install unbound
|
||||
- name: "install unbound"
|
||||
ansible.builtin.apt:
|
||||
name: "unbound"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
9
tasks/main.yaml
Normal file
9
tasks/main.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
# import install
|
||||
- name: "install"
|
||||
ansible.builtin.import_tasks: "install.yaml"
|
||||
|
||||
# import config
|
||||
- name: "config"
|
||||
ansible.builtin.import_tasks: "config.yaml"
|
||||
Loading…
Add table
Add a link
Reference in a new issue