1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-11-24 18:51:02 +01:00
ansible-collection-prometheus/roles/dnsbl_exporter/tasks/config.yml
2020-11-22 02:09:59 +01:00

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