https://github.com/ahuffman/patching
An Ansible Role to perform automated patching of systems. The Role checks to see if services need restarting and also if the system needs a reboot due to patching.
https://github.com/ahuffman/patching
ansible ansible-patching ansible-role patching
Last synced: 9 months ago
JSON representation
An Ansible Role to perform automated patching of systems. The Role checks to see if services need restarting and also if the system needs a reboot due to patching.
- Host: GitHub
- URL: https://github.com/ahuffman/patching
- Owner: ahuffman
- License: mit
- Created: 2018-08-13T13:59:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T21:43:30.000Z (over 4 years ago)
- Last Synced: 2025-03-24T18:21:29.096Z (9 months ago)
- Topics: ansible, ansible-patching, ansible-role, patching
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# ahuffman.patching
An Ansible Role to perform automated patching of systems. The Role checks to see if services need restarting and also if the system needs a reboot due to patching.
# Role Variables
| Variable Name | Required | Description | Default Value | Variable Type |
| --- | :---: | --- | --- | :---: |
| patch_display_patch_output | yes | Whether or not to display output results of patching procedure | True | boolean |
| patch_reboot_message | no | Message to pass to the reboot module when a reboot is required due to patching activities. | "Rebooting due to patching." | string |
| patch_pkgs | no | List of specific packages to patch. **Patches all packages by default.** | ["*"] | list |
| patch_never_reboot | no | To ensure a system never reboots if a reboot is required post patching, set to True | False | boolean |
| patch_never_restart_svc | no | To ensure services never restart if required post patching, set to True | False | boolean |
# Example Playbook
```yaml
- hosts: "all"
tasks:
- name: "Patch Servers"
include_role:
name: "ahuffman.patching"
vars:
patch_display_patch_output: False
patch_pkgs:
- "yum"
- "httpd"
- "ansible"
patch_never_reboot: True
patch_never_restart_svc: True
```
# License
[MIT](LICENSE)
# Author Information
[Andrew J. Huffman](https://github.com/ahuffman)