From e4efcea1d1cf82c48b4a1d349837d75db890077d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 8 Dec 2020 20:18:40 +0100 Subject: collectd: add sensors role --- roles/monitoring/collectd/sensors/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/monitoring/collectd/sensors/tasks/main.yml diff --git a/roles/monitoring/collectd/sensors/tasks/main.yml b/roles/monitoring/collectd/sensors/tasks/main.yml new file mode 100644 index 00000000..6abc32b6 --- /dev/null +++ b/roles/monitoring/collectd/sensors/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: install dependencies + apt: + name: + - libsensors5 + state: present + +- name: install prometheus plugin config + copy: + dest: /etc/collectd/conf.d/prometheus.conf + content: | + LoadPlugin "sensors" + notify: restart collectd -- cgit v1.2.3