aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/kernel/defaults/main.yaml
blob: ef628c93f50cf61a606e17351566adc893f7ff31 (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
---
# 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:
    jammy:
      - "5.15.0-46"

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

kernel_packages_by_distro:
  ubuntu:
    jammy:
      - "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:
    jammy:
      - "amd64-microcode"
      - "intel-microcode"
      - "iucode-tool"