I am trying to reboot a windows machine and I want to wait for it come up. I tried the following playbook:
There is a win_reboot role on Galaxy which will do this for you.
Also there is a Pull Request (not yet merged) for a win_reboot action here https://github.com/ansible/ansible/pull/15314
If you can help out with testing the reboot action that would make it more likely to get included in the next release of Ansible.
Hope this helps,
Jon