summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/chrony/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/monitoring/prometheus/exporter/chrony/tasks/main.yml')
-rw-r--r--roles/monitoring/prometheus/exporter/chrony/tasks/main.yml21
1 files changed, 0 insertions, 21 deletions
diff --git a/roles/monitoring/prometheus/exporter/chrony/tasks/main.yml b/roles/monitoring/prometheus/exporter/chrony/tasks/main.yml
index f15037ec..972b0b70 100644
--- a/roles/monitoring/prometheus/exporter/chrony/tasks/main.yml
+++ b/roles/monitoring/prometheus/exporter/chrony/tasks/main.yml
@@ -42,24 +42,3 @@
}
dest: /etc/prometheus/exporter/chrony.locations
notify: reload nginx
-
-
-## TODO: remove these tasks once all hosts have been migrated
-- name: make sure the systemd timer for chrony textfile collector is disabled and stopped
- systemd:
- service: prometheus-node-exporter_chrony.timer
- enabled: no
- state: stopped
- register: result_systemd_stop
- failed_when: "result_systemd_stop is failed and 'Could not find the requested service' not in result_systemd_stop.msg"
-
-- name: remove files from chrony textfile collector
- loop:
- - /etc/systemd/system/prometheus-node-exporter_chrony.timer
- - /etc/systemd/system/prometheus-node-exporter_chrony.service
- - /usr/local/share/prometheus-node-exporter/chrony
- - /var/lib/prometheus-node-exporter/textfile-collector/chrony.prom
- file:
- path: "{{ item }}"
- state: absent
- notify: reload systemd