Skip to content

Ansible role for rebooting LXC containers (workaround)

License

Notifications You must be signed in to change notification settings

OSSHelp/ansible-lxc-reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lxc-reboot

Build Status

Ugly reboot for LXC containers. Ansible reboot module doesn't work with LXC correctly.

Usage (example)

    - role: lxc-reboot

Available parameters

Param Default Description
lxc_reboot_wait_delay 5 Delay before test connection
lxc_reboot_wait_timeout 60 Testing connection timeout
lxc_reboot_check_command /bin/systemctl is-system-running Command for verify
lxc_reboot_check_command_delay 1 Delay between retries to run the command
lxc_reboot_check_command_retries 60 Retries count

FAQ

Debug script

If, after waiting for boot, the system is degraded, then a debug script is executed in this container and outputs information that can help you in debugging process.

Useful links

TODO

  • ...

License

GPL3

Author

OSSHelp Team, see https://oss.help