prometheus: remove JSON targets cleanup
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alexandre Iooss 2021-12-31 19:40:22 +01:00
parent 860a26a8dc
commit bcded46ed6

View file

@ -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