accelize.linux_kernel

Build Status

Linux Kernel Role

This Ansible role installs and activates a specific version of the Linux kernel from the operating system's repositories and ensures that the correct kernel headers are also installed.

Requirements

You need to run this role as the root user on the target machine.

The chosen kernel version must be available in the OS repositories (this includes "Vault" repositories for Red Hat-based systems).

Role Variables

  • install_kernel_headers: If set to True, matching kernel headers will also be installed. Default is true.
  • kernel_version: This installs the latest kernel version that starts with the provided value (it keeps the current kernel version if it matches). Default is any version.
  • reboot_on_kernel_update: If True, the system will reboot if the kernel is updated. Default is true.
  • kernel_variant: For Debian-based systems, this specifies the required kernel variant (such as "", "common", "generic", "aws", "azure", etc.) or uses the current variant if not specified.

Example Playbook

- hosts: servers
  become: true  
  roles:
     - role: accelize.linux_kernel
  vars:
     kernel_version: 3.10.0-693

Dependencies

None.

License

Apache 2.0

Author Information

This role is provided by Accelize.

Informazioni sul progetto

This Ansible role install and enable a specific Kernel version from OS repositories.

Installa
ansible-galaxy install accelize.linux_kernel
Licenza
apache-2.0
Download
7.2k
Proprietario