add unbound-exporter setup tasks and some docs
This commit is contained in:
parent
c4797c76f7
commit
ce75a91656
2 changed files with 37 additions and 0 deletions
20
deploy.yaml
20
deploy.yaml
|
@ -59,6 +59,19 @@
|
|||
loop:
|
||||
- local-data.conf
|
||||
- noc.conf
|
||||
|
||||
# Unbound exporter installed with go as the unbound_exporter user using:
|
||||
# go install github.com/letsencrypt/unbound_exporter@latest
|
||||
# to /home/unbound_exporter/go/unbound_exporter
|
||||
- name: deploy unbound exporter service
|
||||
ansible.builtin.copy:
|
||||
src: "resources/resolv-dns/files/unbound-exporter.service"
|
||||
dest: "/etc/systemd/system/unbound-exporter.service"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
become: true
|
||||
notify: Restart Unbound exporter service
|
||||
|
||||
handlers:
|
||||
- name: Restart Unbound
|
||||
|
@ -66,3 +79,10 @@
|
|||
name: unbound
|
||||
state: restarted
|
||||
become: true
|
||||
|
||||
- name: Restart Unbound exporter service
|
||||
ansible.builtin.systemd_service:
|
||||
name: unbound-exporter
|
||||
state: restarted
|
||||
daemon_reload: true
|
||||
become: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue