diff options
-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 |