generated from nicolabelluti/template-ansible
Added fan role
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
- name: Test Playbook
|
||||
hosts: bc250
|
||||
roles:
|
||||
- name: Install kernel
|
||||
role: kernel
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user