mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-24 18:51:02 +01:00
27 lines
779 B
YAML
27 lines
779 B
YAML
---
|
|
|
|
- name: render /etc/default/prometheus-dnsbl-exporter
|
|
template:
|
|
src: etc/default/prometheus-dnsbl-exporter.j2
|
|
dest: /etc/default/prometheus-dnsbl-exporter
|
|
notify: restart prometheus-dnsbl-exporter
|
|
|
|
- name: render rbls.ini
|
|
template:
|
|
src: etc/prometheus/dnsbl-exporter/rbls.ini.j2
|
|
dest: /etc/prometheus/dnsbl-exporter/rbls.ini
|
|
vars:
|
|
rbls: "{{ prometheus_dnsbl_exporter_rbls }}"
|
|
notify: restart prometheus-dnsbl-exporter
|
|
|
|
- name: render targets.ini
|
|
template:
|
|
src: etc/prometheus/dnsbl-exporter/targets.ini.j2
|
|
dest: /etc/prometheus/dnsbl-exporter/targets.ini
|
|
notify: restart prometheus-dnsbl-exporter
|
|
|
|
- name: start and enable prometheus-dnsbl-exporter
|
|
service:
|
|
name: prometheus-dnsbl-exporter
|
|
state: started
|
|
enabled: yes
|