Commit 0dcd97d6 authored by nanahira's avatar nanahira

improve

parent 49580fee
Pipeline #4498 failed with stage
in 5 minutes and 26 seconds
- name: install amd microcode
become: true
apt:
name: amd64-microcode
state: latest
when: not amd64_microcode_installed is defined
- name: set installed fact
set_fact:
amd64_microcode_installed: true
when: not amd64_microcode_installed is defined
- name: install intel microcode
become: true
apt:
name: intel-microcode,iucode-tool
state: latest
when: not intel_microcode_installed is defined
- name: set installed fact
set_fact:
intel_microcode_installed: true
when: not intel_microcode_installed is defined
...@@ -17,7 +17,15 @@ ...@@ -17,7 +17,15 @@
name: linux-xanmod name: linux-xanmod
state: latest state: latest
update_cache: true update_cache: true
- name: microcode - name: install intel microcode
include_tasks: './xanmod-cpus/{{item}}.yml' become: true
with_items: '{{ansible_processor}}' apt:
when: ansible_architecture == 'x86_64' and (item == 'GenuineIntel' or item == 'AuthenticAMD') name: intel-microcode,iucode-tool
state: latest
when: '"GenuineIntel" in ansible_processor'
- name: install amd microcode
become: true
apt:
name: amd64-microcode
state: latest
when: '"AuthenticAMD" in ansible_processor'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment