1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-11-25 03:01:08 +01:00
ansible-collection-prometheus/roles/dnsbl_exporter/tasks/config.yml

28 lines
779 B
YAML
Raw Permalink Normal View History

2020-11-22 01:50:26 +01:00
---
- 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