summaryrefslogtreecommitdiff
path: root/dan/ele-helene.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-07-31 18:54:53 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-07-31 18:54:53 +0200
commitc8d5c54a092db3ffad09cafbcb4344961f282dbb (patch)
treeed6f01ab53d7f88f9023d5312bde3143e5116c03 /dan/ele-helene.yml
parentinstall ele-hwps-maxi (diff)
ele-(helene|dione) install sensors and power utils
Diffstat (limited to 'dan/ele-helene.yml')
-rw-r--r--dan/ele-helene.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/dan/ele-helene.yml b/dan/ele-helene.yml
index fc7c05c9..b65a3d34 100644
--- a/dan/ele-helene.yml
+++ b/dan/ele-helene.yml
@@ -32,3 +32,30 @@
dest: /srv/recordings
import_role:
name: storage/lvm/volume
+
+ - name: install lm-sensors and i7z
+ apt:
+ name:
+ - lm-sensors
+ - i7z
+
+ - name: load modules for lm-sensors
+ vars:
+ sensors_modules:
+ - coretemp
+ block:
+ - name: load special modules for lm-sensors
+ loop: "{{ sensors_modules }}"
+ modprobe:
+ name: "{{ item }}"
+ state: present
+
+ - name: make sure sensor modules are loaded on reboot
+ copy:
+ content: |
+ # Ansible managed
+
+ {% for module in sensors_modules %}
+ {{ module }}
+ {% endfor %}
+ dest: /etc/modules-load.d/sensors.conf