GithubHelp home page GithubHelp logo

pricy / ansible-system-patching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindpointgroup/ansible-system-patching

0.0 2.0 0.0 172 KB

Ansible roles for managing system patching

License: MIT License

PowerShell 100.00%

ansible-system-patching's Introduction

Patch Management

Ansible play to manage patching Linux servers (and eventually windows too)

Instructions

Command Line Useage

From the command line you need to specify the value of hosts as an extra_vars entry:

ansible-playbook PatchSystems.yaml -e "hosts=<valid hosts input>"

The playbook defaults to rebooting servers after patching. Override the reboot var to change this.

ansible-playbook PatchSystems.yaml -e "hosts=<valid hosts input> reboot=false"

You may opt to specify what tags to act on. The two tags allow you to only run parts of the plays.

  • Options:
    • pin - Performs only the package pinning or versionlock part of the role
    • patch - Performs patching only i.e. skips pinning

This example would perform package pinning:

ansible-playbook PatchSystems.yaml -e "hosts=tag_site_example_com" --tags "pin"
Updating Compatible Kernel Versions

We currently pin Kernel packages so that we don't break support for a host agent that loads a kernel module:

  1. Update the appropriate vars file with the new most current kernel version for the distribution

i.e vars/ubuntu_12.yaml

---
supported_kernel_version: "3.2.0.70*"

Contribution Instructions

  • Every YAML file must follow this format:
---
   
# Location <PATH TO FILE>
# <PURPOSE/DESCRIPTIVE STATEMENT>

<content>

Additionally, all contributions must adhere to the same standards found here

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.