add tasks and resources for deploying unbound

This commit is contained in:
June 2025-04-17 20:35:09 +02:00
commit c9a5bcfd6e
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
3 changed files with 36 additions and 0 deletions

View file

@ -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