unbound(role): fix unbound prometheus exporter install on debian
Some checks failed
/ build (pull_request) Failing after 2m46s
/ Ansible Lint (push) Successful in 3m3s
/ Ansible Lint (pull_request) Successful in 3m8s

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