unbound(role): fix unbound prometheus exporter install on debian

- download debian image from github und verify checksum
- setup systemd service unit
This commit is contained in:
bitwhisker 2026-06-21 20:13:29 +02:00
commit 83f654037a
Signed by: bitwhisker
SSH key fingerprint: SHA256:KybIk/tusSKao6eLGY+ILlFa1rCrzwx66/acBAcKUqE
3 changed files with 65 additions and 13 deletions

View file

@ -31,13 +31,6 @@
group: unbound
mode: u=rw,g=r,o=r
- name: ensure unbound is running and enabled
become: true
ansible.builtin.systemd:
name: unbound.service
state: started
enabled: true
- name: disable systemd-resolved
when: unbound_disable_systemd_networkd
ansible.builtin.include_role:
@ -47,6 +40,13 @@
deploy_systemd_resolved_config__dns:
- 127.0.0.1
- name: ensure unbound is running and enabled
become: true
ansible.builtin.systemd:
name: unbound.service
state: started
enabled: true
- name: install and configure prometheus-exporter for unbound
ansible.builtin.import_tasks: prometheus-exporter.yml
when: unbound_install_prometheus_exporter