diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-04-03 08:14:50 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-04-09 11:00:33 +0000 |
commit | 8fcb84c0495e364daf65745a9b23b0d6f0a1d51e (patch) | |
tree | da56330e5424c5c3a5bc323dc83dda13aac4e58a /resources/tools/testbed-setup/ansible/roles/kernel/defaults | |
parent | 8e3a326cba182b4ab9054263625c7e40cdd6f2e3 (diff) |
Ansible: Kernel installation
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Iee65272169339ed0e5561cf3dee11567335b12be
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/kernel/defaults')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml new file mode 100644 index 0000000000..d84a163487 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml @@ -0,0 +1,28 @@ +--- +# 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_by_distro: + ubuntu: + - "4.15.0-72" + +kernel_packages: "{{ kernel_packages_by_distro[ansible_distribution | lower] | flatten(levels=1) }}" + +kernel_packages_by_distro: + ubuntu: + - "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] | flatten(levels=1) }}" + +absent_packages_by_distro: + ubuntu: + - "amd64-microcode" + - "intel-microcode" + - "iucode-tool" |