summaryrefslogtreecommitdiff
path: root/roles/core/cpu-microcode/tasks/Debian.yml
blob: e3f0ef45ff8027eded5a753d619f4e7fe8193e7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: check if non-free and contrib apt component is enabled for 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"

- name: install microcode-update packages
  when:
  - 'ansible_architecture in ["i386", "x86_64"]'
  apt:
    name:
    - intel-microcode
    - amd64-microcode
    state: present