https://github.com/derjd/ansible-reboot
Ansible role rebooting node only if necessary
https://github.com/derjd/ansible-reboot
ansible ansible-role reboot reboot-node role
Last synced: 2 months ago
JSON representation
Ansible role rebooting node only if necessary
- Host: GitHub
- URL: https://github.com/derjd/ansible-reboot
- Owner: derJD
- Created: 2019-08-04T23:00:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-30T13:32:29.000Z (over 4 years ago)
- Last Synced: 2025-01-11T18:19:27.026Z (4 months ago)
- Topics: ansible, ansible-role, reboot, reboot-node, role
- Language: Makefile
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
reboot
=========Reboot node if necessary.
Requirements
------------none so far.
Role Variables
--------------| Variable | Type | Default | Description |
| -------- | ---- | ------- | ----------- |
| `reboot_test_command` | String | `whoami` | Command to check if node is ready after being reachable again. |
| `reboot_uptime_days` | Number | None | If this is set, nodes with higher uptime than this value will be rebooted |
Dependencies
------------none so far.
Example Playbook
----------------* basic example:
```
---
- hosts: servers
vars:
reboot_uptime_days: 30
tasks:
- package: upgrade=full update_cache=yes
- include_role: name=derJD.reboot
```License
-------BSD
Author Information
------------------[derJD](https://github.com/derJD/)