Ansible reboot Linux machine or server with playbooks

Originally published at:

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?

The post is good. However look like quite inconvenient while separated comments to forum intead inside the post.
1 more thing that should add sharing post feature.

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki