Ansible reboot Linux machine or server with playbooks


#1

Originally published at: https://www.cyberciti.biz/faq/ansible-reboot-linux-machine-or-server-with-playbooks/

I need to reboot the VM or bare metal Linux machine/server using Ansible and wait for it to come back, but it does not work with playbook as descried here. How to reboot Linux server with Ansible? How do I reboot and wait for reboot to complete in Ansible playbook for multiple Linux servers?