From 9d5080d2bfd043d9f56a8c1bc5a23c41b1eb9c94 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 30 Aug 2023 15:37:01 +0200 Subject: prometheus: all host have now been migrated to use chrony-exporter and renamed apt-info collector --- .../node/tasks/textfile_collector_apt_info.yml | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_apt_info.yml (limited to 'roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_apt_info.yml') diff --git a/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_apt_info.yml b/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_apt_info.yml deleted file mode 100644 index b452c66e..00000000 --- a/roles/monitoring/prometheus/exporter/node/tasks/textfile_collector_apt_info.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -## this is overkill since all apt-based machines that are controlled via ansible will have this installed -# - name: make sure python-apt is installed -# apt: -# name: "{{ python_basename }}-apt" -# state: present - -## TODO: remove this once all hosts have been migrated -- name: make sure the systemd timer for apt textfile collector is disabled and stopped - systemd: - service: prometheus-node-exporter_apt.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 apt textfile collector - loop: - - /etc/systemd/system/prometheus-node-exporter_apt.timer - - /etc/systemd/system/prometheus-node-exporter_apt.service - - /usr/local/share/prometheus-node-exporter/apt - - /var/lib/prometheus-node-exporter/textfile-collector/apt.prom - file: - path: "{{ item }}" - state: absent - notify: reload systemd -## - -- name: install the apt_info textfile collector script - include_tasks: textfile_collector_generic.yml -- cgit v1.2.3