Coder Social home page Coder Social logo

ansible-linux-kernel-upgrade's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.