Skip to content

ansible playbook to manually compile and install new kernel on Centos/Redhat Linux

Notifications You must be signed in to change notification settings

evina-unixguru/ansible-linux-kernel-upgrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-linux-kernel-upgrade

ansible playbook to manually compile and install new kernel on Centos/Redhat Linux

Script needs an inventory file when run against real servers. For local testing with vagrant use hosts: all

For silent kernel compile, a kernel config file with required kernel configs options is required. This can be obtained by manually compiling the kernel on one of the hosts. Resulting.config can be found inside the folder where the kernel is compiled. This playbook expect the kernel config file (kernel.config) file to be in the same folder as playbook upgrade.yml.

A sample kernel config with default options are included in the script folder.

syntax to run the script is

ansible-playbook upgrade.yml -i inventory.yml -u root -k

This is tested with ansible 2.0 and vagrant 1.8.4.

For vagrant the ansible verbosity can be increased with ansible.verbose = "vvv" if desired. Currently following are under a single task,

  • make silentoldconfig .config
  • make
  • make modules
  • make modules_install
  • make install

If desired they can be broken down to individual tasks so the result of each sub task is displayed.

About

ansible playbook to manually compile and install new kernel on Centos/Redhat Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published