diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-08-30 15:37:01 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-08-30 15:37:01 +0200 |
commit | 9d5080d2bfd043d9f56a8c1bc5a23c41b1eb9c94 (patch) | |
tree | ce9f3b00a691020c3b0603a102ac51bfe7d9f5ac /roles/monitoring/prometheus/exporter/chrony | |
parent | gitolite: allow custom user to be defined and refactor handling of http role (diff) |
prometheus: all host have now been migrated to use chrony-exporter and renamed apt-info collector
Diffstat (limited to 'roles/monitoring/prometheus/exporter/chrony')
-rw-r--r-- | roles/monitoring/prometheus/exporter/chrony/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/monitoring/prometheus/exporter/chrony/tasks/main.yml | 21 |
2 files changed, 0 insertions, 26 deletions
diff --git a/roles/monitoring/prometheus/exporter/chrony/handlers/main.yml b/roles/monitoring/prometheus/exporter/chrony/handlers/main.yml index 0c940ca9..5ed68726 100644 --- a/roles/monitoring/prometheus/exporter/chrony/handlers/main.yml +++ b/roles/monitoring/prometheus/exporter/chrony/handlers/main.yml @@ -8,8 +8,3 @@ service: name: nginx state: reloaded - -### TODO: remove this once all hosts have been migrated -- name: reload systemd - systemd: - daemon_reload: yes 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 |