add tasks and resources for deploying unbound

This commit is contained in:
June 2025-04-17 20:35:09 +02:00
parent 51603ad551
commit c9a5bcfd6e
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
3 changed files with 36 additions and 0 deletions
deploy.yaml
resources/resolv-dns/files/unbound.conf.d

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

View file

@ -0,0 +1,11 @@
server:
local-data: "cookies.eh22.intern. A 94.45.254.3"
local-data: "jool.eh22.intern. 0 IN A 94.45.254.4"
local-data: "grafana.noc.eh22.intern. CNAME monitoring.noc.eh22.intern"
local-data: "loki.noc.eh22.intern. CNAME monitoring.noc.eh22.intern"
local-data: "mimir.noc.eh22.intern. CNAME monitoring.noc.eh22.intern"
local-data: "monitoring.noc.eh22.intern. A 94.45.255.4"
local-data: "proxmox.noc.eh22.intern. A 94.45.255.2"
local-data: "router.noc.eh22.intern. A 94.45.255.2"
local-data: "resolv-dns.eh22.intern. A 94.45.254.2"
local-data: "dhcp.eh22.intern. A 94.45.255.70"

View file

@ -0,0 +1,4 @@
server:
qname-minimisation: yes
interface: 0.0.0.0
access-control: 94.45.224.0/19 allow