aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/kernel/defaults/main.yaml
blob: 92dc30f58b1c82e1cf308834b8359634db401bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# file: roles/kernel/defaults/main.yaml

# Kernel version to install (Default to any version).
kernel_version: "{{ kernel_version_by_distro[ansible_distribution|lower][ansible_distribution_release] | join(' ') }}"

kernel_version_by_distro:
  ubuntu:
    bionic:
      - "4.15.0-72"
    focal:
      - "5.4.0-65"

kernel_packages: "{{ kernel_packages_by_distro[ansible_distribution|lower][ansible_distribution_release] | flatten(levels=1) }}"

kernel_packages_by_distro:
  ubuntu:
    bionic:
      - "linux-image"
      - "linux-headers"
      - "linux-modules"
      - "linux-modules-extra"
      - "linux-tools"
    focal:
      - "linux-image"
      - "linux-headers"
      - "linux-modules"
      - "linux-modules-extra"
      - "linux-tools"

# Packages to remove in relation to kernel upgrade.
absent_packages: "{{ absent_packages_by_distro[ansible_distribution|lower][ansible_distribution_release] | flatten(levels=1) }}"

absent_packages_by_distro:
  ubuntu:
    bionic:
      - "amd64-microcode"
      - "intel-microcode"
      - "iucode-tool"
    focal:
      - "amd64-microcode"
      - "intel-microcode"
      - "iucode-tool"