I am trying to reboot a windows machine and I want to wait for it come up. 
I tried the following playbook:

---
- hosts: windows
  tasks: 
     - name: Reboot windows
       raw: shutdown /r /f 
    
     - name: ping windows machine until it comes up
       action: win_ping
       register: result
       until: result.rc == 0
       retries: 30
       delay: 20
 
But, it is not working somehow. Is there any other way I can reboot the 
windows 10 machine and wait for it come up ?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/821e0104-2dc6-4691-bc1f-f2438ab40ec0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to