diff --git a/tasks/mainboard-amd-am5-b650m-hdv_m.2.yml b/tasks/mainboard-amd-am5-b650m-hdv_m.2.yml deleted file mode 100644 index 2232e74..0000000 --- a/tasks/mainboard-amd-am5-b650m-hdv_m.2.yml +++ /dev/null @@ -1,38 +0,0 @@ -# SPDX-License-Identifier: MIT -- 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 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 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-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 super I/O chip) add kernel module config' - loop_control: - loop_var: 'file' - index_var: 'i' - label: 'Store ''/{{ file.path }}'' {{ file.purpose_human_readable }}' - loop: - - { path: 'etc/modules-load.d/lm-sensors.conf', purpose_human_readable: 'to auto-load the ''nct6775'' kernel module on boot' } - - { path: 'etc/modprobe.d/lm-sensors.conf', purpose_human_readable: 'for the ''nct6775'' kernel module to work with this mainboard' } - ansible.builtin.copy: - src: '{{ file.path }}' - dest: '/{{ file.path }}' - notify: - - 'Reboot machine'