I would like to reboot the machine using shell module and wait for it to come back, but it does not work with the following playbook:
---
# reboot.yml
- hosts: all
tasks:
- name: reboot host
shell: /sbin/shutdown -r now
become: true
- name: waiting for serv...