summaryrefslogtreecommitdiff
path: root/roles/core/cpu-microcode/tasks/Debian.yml
blob: 9f6a27f4e47cf4507f19392150713cba8dde18ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: check if non-free and contrib apt component is enabled for debian
  when: 'ansible_distribution == "Debian"'
  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
  apt:
    name:
      - intel-microcode
      - amd64-microcode
    state: present