Ansible
Jump to navigation
Jump to search
Reboot
In ansible >2.7 there is a reboot task (for roles)
To restart manually:
ansible cluster -i inventory -b -B 1 -P 0 -m shell -a "sleep 5 && reboot"
Shutdown
ansible cluster -i inventory -b -B 1 -P 0 -m shell -a "shutdown now"