derjd.reboot
Reboot
Restart the node if needed.
Requirements
None at this time.
Role Variables
Variable | Type | Default | Description |
---|---|---|---|
reboot_test_command |
String | whoami |
Command to verify if the node is ready after it becomes reachable again. |
reboot_uptime_days |
Number | None | If set, nodes with more uptime than this value will be restarted. |
Dependencies
None at this time.
Example Playbook
- Simple example:
---
- hosts: servers
vars:
reboot_uptime_days: 30
tasks:
- package: upgrade=full update_cache=yes
- include_role: name=derJD.reboot
License
BSD