An ansible role for rebooting Linux hosts when a reboot is required.
- Just the python interpreter
Variable | Description | Default |
---|---|---|
reboot_allowed |
Is a reboot allowed? | False |
reboot_time |
Difine a reboot time like in "HH:MM" or "+5" for in 5 minutes. Lookup "man shutdown" for further information. If you want to reboot instantly, ignore these variable. | undefined |
None.
Reboot in 10 minutes:
---
- hosts: all
vars:
reboot_allowed: True
reboot_time: '+10'
roles:
- ansible-reboot-required
GPL3