Added fan role

This commit is contained in:
2026-08-26 07:55:40 +02:00
parent a668fb269a
commit 75f68198ce
4 changed files with 29 additions and 9 deletions
-5
View File
@@ -1,5 +0,0 @@
- name: Test Playbook
hosts: bc250
roles:
- name: Install kernel
role: kernel
+22
View File
@@ -0,0 +1,22 @@
# The custom `linux-cachyos-bc250` brings in the nct6678 module
- name: Configure the nct6687 sensor module
become: true
ansible.builtin.copy:
content: |
blacklist nct6683
options nct6687 force=true
dest: /etc/modprobe.d/sensors.conf
mode: '0644'
- name: Load nct6687 at boot
become: true
ansible.builtin.copy:
content: "nct6687\n"
dest: /etc/modules-load.d/99-sensors.conf
mode: '0644'
- name: Load nct6687 now
become: true
community.general.modprobe:
name: nct6687
state: present
-4
View File
@@ -10,8 +10,6 @@
Server = https://github.com/MastaG/linux-cachyos-bc250/releases/download/repo
register: pacman_repo
# Full upgrade first: installing from a freshly added repo without -Syu
# would be a partial upgrade.
- name: Perform a full system upgrade
become: true
community.general.pacman:
@@ -68,8 +66,6 @@
ansible.builtin.setup:
filter: ansible_kernel
# Guards the removal below: never drop deckify unless we are already
# running the BC-250 kernel.
- name: Make sure the BC-250 kernel is the running one
ansible.builtin.assert:
that: "'bc250' in ansible_kernel"
+7
View File
@@ -0,0 +1,7 @@
- name: Configure the BC250
hosts: bc250
roles:
- name: Install kernel
role: kernel
- name: Install fan control and temperature driver
role: fan