summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/core/cpu-microcode/tasks/Debian.yml16
1 files changed, 10 insertions, 6 deletions
diff --git a/roles/core/cpu-microcode/tasks/Debian.yml b/roles/core/cpu-microcode/tasks/Debian.yml
index 9f6a27f4..e3f0ef45 100644
--- a/roles/core/cpu-microcode/tasks/Debian.yml
+++ b/roles/core/cpu-microcode/tasks/Debian.yml
@@ -1,16 +1,20 @@
---
- name: check if non-free and contrib apt component is enabled for debian
- when: 'ansible_distribution == "Debian"'
+ when:
+ - 'ansible_distribution == "Debian"'
+ - 'ansible_architecture in ["i386", "x86_64"]'
assert:
msg: "On Debian microcode-update packages are in non-free - please enable it (and contrib) using 'apt_repo_components'"
that:
- - apt_repo_components is defined
- - "'contrib' in apt_repo_components"
- - "'non-free' in apt_repo_components"
+ - apt_repo_components is defined
+ - "'contrib' in apt_repo_components"
+ - "'non-free' in apt_repo_components"
- name: install microcode-update packages
+ when:
+ - 'ansible_architecture in ["i386", "x86_64"]'
apt:
name:
- - intel-microcode
- - amd64-microcode
+ - intel-microcode
+ - amd64-microcode
state: present