prometheus: remove JSON targets cleanup
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/90/head
Alexandre Iooss 2 years ago
parent 860a26a8dc
commit bcded46ed6

@ -63,20 +63,6 @@
- snmp.yml
notify: Restart prometheus-snmp-exporter
- name: Remove old targets
file:
path: "{{ item }}"
state: absent
loop:
- /etc/prometheus/targets.json
- /etc/prometheus/targets_unifi_snmp.json
- /etc/prometheus/targets_switch_snmp.json
- /etc/prometheus/targets_ups_snmp.json
- /etc/prometheus/targets_docker.json
- /etc/prometheus/targets_postgres.json
- /etc/prometheus/targets_apc_pdu_snmp.json
- /etc/prometheus/targets_ipmi.json
- name: Activate prometheus service
systemd:
name: prometheus

Loading…
Cancel
Save