blob: 01fdd8b014819ad1e3449da7ce065946e4f69220 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
- name: check if non-free and contrib apt component is enabled for debian
when:
- 'ansible_distribution == "Debian"'
- '(ansible_distribution_major_version | int) <= 11'
- '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"
- name: install microcode-update packages
when:
- 'ansible_architecture in ["i386", "x86_64"]'
apt:
name:
- intel-microcode
- amd64-microcode
state: present
|