add tasks and resources for deploying unbound
This commit is contained in:
parent
51603ad551
commit
c9a5bcfd6e
3 changed files with 36 additions and 0 deletions
21
deploy.yaml
21
deploy.yaml
|
@ -21,3 +21,24 @@
|
|||
ansible.builtin.service:
|
||||
name: kea-dhcp4-server
|
||||
state: restarted
|
||||
|
||||
- name: Deploy Unbound DNS
|
||||
hosts: resolv-dns
|
||||
tasks:
|
||||
- name: deploy kea dhcp server config
|
||||
ansible.builtin.copy:
|
||||
src: "resources/resolv-dns/files/unbound.conf.d/{{ item }}"
|
||||
dest: "/etc/unbound/unbound.conf.d/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Restart Unbound
|
||||
loop:
|
||||
- local-data.conf
|
||||
- noc.conf
|
||||
|
||||
handlers:
|
||||
- name: Restart Unbound
|
||||
ansible.builtin.service:
|
||||
name: unbound
|
||||
state: restarted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue