Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Infra: Ansible Ubuntu Focal
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
kernel
/
defaults
/
main.yaml
diff --git
a/resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml
b/resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml
index
d84a163
..
b9b4253
100644
(file)
--- a/
resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml
+++ b/
resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml
@@
-2,27
+2,42
@@
# file: roles/kernel/defaults/main.yaml
# Kernel version to install (Default to any version).
# file: roles/kernel/defaults/main.yaml
# Kernel version to install (Default to any version).
-kernel_version: "{{ kernel_version_by_distro[ansible_distribution
| lower
] | join(' ') }}"
+kernel_version: "{{ kernel_version_by_distro[ansible_distribution
|lower][ansible_distribution_release
] | join(' ') }}"
kernel_version_by_distro:
ubuntu:
kernel_version_by_distro:
ubuntu:
- - "4.15.0-72"
+ bionic:
+ - "4.15.0-72"
+ focal:
+ - "5.4.0-65"
-kernel_packages: "{{ kernel_packages_by_distro[ansible_distribution
| lower
] | flatten(levels=1) }}"
+kernel_packages: "{{ kernel_packages_by_distro[ansible_distribution
|lower][ansible_distribution_release
] | flatten(levels=1) }}"
kernel_packages_by_distro:
ubuntu:
kernel_packages_by_distro:
ubuntu:
- - "linux-image"
- - "linux-headers"
- - "linux-modules"
- - "linux-modules-extra"
- - "linux-tools"
+ 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.
# Packages to remove in relation to kernel upgrade.
-absent_packages: "{{ absent_packages_by_distro[ansible_distribution
| lower
] | flatten(levels=1) }}"
+absent_packages: "{{ absent_packages_by_distro[ansible_distribution
|lower][ansible_distribution_release
] | flatten(levels=1) }}"
absent_packages_by_distro:
ubuntu:
absent_packages_by_distro:
ubuntu:
- - "amd64-microcode"
- - "intel-microcode"
- - "iucode-tool"
+ bionic:
+ - "amd64-microcode"
+ - "intel-microcode"
+ - "iucode-tool"
+ focal:
+ - "amd64-microcode"
+ - "intel-microcode"
+ - "iucode-tool"
\ No newline at end of file