blob: 0d6c42025dc98e073a96c5e9dc865c18c17f44ed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
---
- name: Basic Setup
hosts: ch-calypso
roles:
- role: apt-repo/base
- role: core/base
- role: core/sshd
- role: core/zsh
- role: core/cpu-microcode
- role: zfs/base
- role: apt-repo/spreadspace
- role: ws/base
- role: core/admin-users
- role: streaming/blackmagic/desktopvideo
- role: streaming/blackmagic/mediaexpress
post_tasks:
- name: install lm-sensors and i7z
apt:
name:
- lm-sensors
- i7z
- name: load modules for lm-sensors
vars:
sensors_modules:
- coretemp
- w83627ehf
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
|