- create unbound role - create kea_dhcp role - configure unbound and keadhcp on rt1(z9 host)
17 lines
521 B
YAML
17 lines
521 B
YAML
---
|
|
- name: install unbound prometheus exporter
|
|
become: true
|
|
ansible.builtin.package:
|
|
name: prometheus-unbound-exporter
|
|
notify: prometheus-unbound-exporter.enabled
|
|
|
|
- name: configure unbound exporter
|
|
become: true
|
|
ansible.builtin.copy:
|
|
dest: /etc/conf.d/prometheus-unbound-exporter
|
|
content: |
|
|
UNBOUND_EXPORTER_ARGS="-unbound.ca "" -unbound.cert "" -unbound.host "unix:///run/unbound-control.sock"
|
|
owner: root
|
|
group: root
|
|
mode: '0660'
|
|
notify: prometheus-unbound-exporter.restarted
|