Skip to content

An ansible role for rebooting Linux hosts when a reboot is required

License

Notifications You must be signed in to change notification settings

Footur/ansible-reboot-required

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reboot if required

Build Status

An ansible role for rebooting Linux hosts when a reboot is required.

⚠️ Works only with Debian-based Linux distributions

Requirements

  • Just the python interpreter

Role Variables

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

Dependencies

None.

Example Playbook

Reboot in 10 minutes:

---
- hosts: all
  vars:
    reboot_allowed: True
    reboot_time: '+10'
  roles:
    - ansible-reboot-required

License

GPL3

About

An ansible role for rebooting Linux hosts when a reboot is required

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published