I am trying to reboot a windows server after installing .net + a bunch of 
dependencies. I have a super simple PS module to schedule a reboot. However 
afterwords i would like to wait for the WinRM connection to come back:

- name: Configuring windows
  hosts: windows
  roles:
    - win_dotnet_46
    - win_nodejs
    - win_msvc
    - win_jdk
  tasks:
    - name: Rebooting for .NET 4.6
      win_reboot:
        force: yes

    - name: Waiting for Windows Server to Come up
      local_action: wait_for host={{ ansible_ssh_host }} port={{ 
ansible_ssh_port }} delay=30 timeout=300

However actually running this local_action seems to result in:

TASK [Waiting for Windows Server to Come up] 
***********************************
fatal: [XXXXXXXXXX]: FAILED! => {"failed": true, "msg": "ERROR! The module 
wait_for was not found in configured module paths"}

I can use wait_for everywhere else, but not here :(!

-- 
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/bdd072cc-8798-4c24-821d-10473ddb2353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to