13 lines
362 B
YAML
Raw Permalink Normal View History

2023-07-20 15:40:35 +02:00
---
- name: '{{ exporter }} exporter | stop old version'
systemd:
name: prometheus-{{ exporter }}-exporter.service
state: stopped
tags: [ 'prometheus_{{ exporter }}' ]
- name: '{{ exporter }} exporter | remove old version'
file:
path: /usr/local/bin/prometheus-{{ exporter }}-exporter
state: absent
tags: [ 'prometheus_{{ exporter }}' ]