diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-12-08 20:18:40 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-12-08 20:18:40 +0100 |
commit | e4efcea1d1cf82c48b4a1d349837d75db890077d (patch) | |
tree | ccc491ac4f8d119eacf74fbdc9142880f4b3f23f | |
parent | add grahpite web and grafana roles (diff) |
collectd: add sensors role
-rw-r--r-- | roles/monitoring/collectd/sensors/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
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 |