This Ansible role install and enable a specific kernel version from OS repositories and to ensure matching kernel headers are installed.
The role requires to be run as root on the target host.
The specified Kernel version must be supported by OS repositories (This include "Vault" repositories for Red hat based distributions).
- install_kernel_headers: If True, also install matching kernel headers.
Default to
true
. - kernel_version: Install the most recent kernel version available that start by this value (Keep the current kernel version if matching). Default to any version.
- reboot_on_kernel_update: If True, reboot the system if the kernel was updated.
Default to
true
.
- hosts: servers
become: true
roles:
- role: accelize.linux_kernel
vars:
kernel_version: 3.10.0-693
None.
Apache 2.0
This role is provided by Accelize.