feat(role): Add mainboard Asus PRIME A320I-K
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
- import_tasks: 'mainboard-amd-am5-b650m-hdv_m.2.yml'
|
||||
when: 'ansible_facts[''product_name''] | lower == ''b650m-hdv/m.2'''
|
||||
- import_tasks: 'mainboard-amd-am4-prime_a320i-k.yml'
|
||||
when: 'ansible_facts[''board_name''] | lower == ''prime a320i-k'''
|
||||
|
||||
21
tasks/mainboard-amd-am4-prime_a320i-k.yml
Normal file
21
tasks/mainboard-amd-am4-prime_a320i-k.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
- name: 'If mainboard is Asus PRIME A320I-K (with ITE IT8655E super I/O chip) and Arch Linux install Arch User Repository (AUR) packages for sensors and fan control'
|
||||
when: 'ansible_facts[''os_family''] | lower == ''archlinux'''
|
||||
kewlfft.aur.aur:
|
||||
name: '{{ packages_linux_sensors_archlinux_paru_ite_it8655e }}'
|
||||
state: 'present'
|
||||
become: 'yes'
|
||||
become_user: 'build'
|
||||
|
||||
- name: 'If mainboard is Asus PRIME A320I-K (with ITE IT8655E super I/O chip) add fan control config'
|
||||
loop_control:
|
||||
loop_var: 'file'
|
||||
index_var: 'i'
|
||||
label: 'Store ''{{ file.dst }}'' {{ file.purpose_human_readable }}'
|
||||
loop:
|
||||
- { src: 'etc/fancontrol-ite-it8655e-fans-1-2-3-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
||||
ansible.builtin.copy:
|
||||
src: '{{ file.src }}'
|
||||
dest: '{{ file.dst }}'
|
||||
notify:
|
||||
- 'Restart fancontrol.service'
|
||||
@@ -1,29 +1,29 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) and OS is a Linux flavor install Linux-specific packages for sensors and fan control'
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) and OS is a Linux flavor install Linux-specific packages for sensors and fan control'
|
||||
when: 'ansible_facts[''system''] | lower == ''linux'''
|
||||
ansible.builtin.package:
|
||||
name: '{{ packages_linux_sensors_all_families }}'
|
||||
state: 'present'
|
||||
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) and ''os_family'' is ''{{ ansible_facts[''os_family''] | lower }}'' install {{ ansible_facts[''os_family''] | lower }}-specific packages for sensors and fan control'
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) and ''os_family'' is ''{{ ansible_facts[''os_family''] | lower }}'' install {{ ansible_facts[''os_family''] | lower }}-specific packages for sensors and fan control'
|
||||
ansible.builtin.package:
|
||||
name: '{{ vars[''packages_linux_sensors_'' + ansible_facts[''os_family''] | lower] }}'
|
||||
state: 'present'
|
||||
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) add fan control config'
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) add fan control config'
|
||||
loop_control:
|
||||
loop_var: 'file'
|
||||
index_var: 'i'
|
||||
label: 'Store ''{{ file.dst }}'' {{ file.purpose_human_readable }}'
|
||||
loop:
|
||||
- { src: 'etc/fancontrol-fans-2-4-5-7-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
||||
- { src: 'etc/fancontrol-nuvoton-nct6796d-s-fans-2-4-5-7-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
||||
ansible.builtin.copy:
|
||||
src: '{{ file.src }}'
|
||||
dest: '{{ file.dst }}'
|
||||
notify:
|
||||
- 'Restart fancontrol.service'
|
||||
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) add kernel module config'
|
||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) add kernel module config'
|
||||
loop_control:
|
||||
loop_var: 'file'
|
||||
index_var: 'i'
|
||||
|
||||
Reference in New Issue
Block a user