diff options
Diffstat (limited to 'chaos-at-home/ch-thetys.yml')
-rw-r--r-- | chaos-at-home/ch-thetys.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chaos-at-home/ch-thetys.yml b/chaos-at-home/ch-thetys.yml index 6c8b0805..01cb9cca 100644 --- a/chaos-at-home/ch-thetys.yml +++ b/chaos-at-home/ch-thetys.yml @@ -13,3 +13,31 @@ - role: kubernetes/base - role: kubernetes/standalone/base - role: streaming/rtmp/streamer + post_tasks: + - name: install lm-sensors and i7z + apt: + name: + - lm-sensors + - i7z + + - name: load modules for lm-sensors + vars: + sensors_modules: + - coretemp + - it87 + block: + - name: load special modules for lm-sensors + loop: "{{ sensors_modules }}" + modprobe: + name: "{{ item }}" + state: present + + - name: make sure module is loaded on reboot + copy: + content: | + # Ansible managed + + {% for module in sensors_modules %} + {{ module }} + {% endfor %} + dest: /etc/modules-load.d/sensors.conf |