mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 10:25:39 +00:00
26 lines
515 B
YAML
26 lines
515 B
YAML
---
|
|
- name: check if Intel processor
|
|
command: grep -q Intel /proc/cpuinfo
|
|
register: is_intel
|
|
failed_when: is_intel.rc > 1
|
|
|
|
- name: check if AMD processor
|
|
command: grep -q AMD /proc/cpuinfo
|
|
register: is_amd
|
|
failed_when: is_amd.rc > 1
|
|
|
|
- name: Install Intel microcode
|
|
pacman:
|
|
name: intel-ucode
|
|
state: present
|
|
when: is_intel.rc == 0
|
|
notify:
|
|
- rebuild grub
|
|
|
|
- name: Install AMD microcode
|
|
pacman:
|
|
name: amd-ucode
|
|
state: present
|
|
when: is_amd.rc == 0
|
|
notify:
|
|
- rebuild grub
|