mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
add support for AMD microcode
This commit is contained in:
parent
4142304af6
commit
931c9286aa
1 changed files with 23 additions and 2 deletions
|
|
@ -1,5 +1,26 @@
|
|||
---
|
||||
- name: Install intel microcode
|
||||
pacman: name=intel-ucode state=present
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue