We've got a win_wait_for module on the roadmap for 2.4. Meantime, a
win_shell task with a one-liner while loop using Test-Path and Start-Sleep
should do the trick.
-Matt
On Thursday, June 8, 2017 at 8:48:18 AM UTC-7, Paul Farrington wrote:
>
> Stavros, did you ever get this resolved as i have this exact issue now.
>
> On Wednesday, 10 February 2016 16:35:04 UTC, Stavros wrote:
>>
>> Hi,
>>
>> I use the wait_for in a playbook in order to wait until a file is
>> present, but this doesn't work, e.g.
>>
>> - name: Wait for remote host
>> wait_for: host={{ floating_ip }} path="C:\\Temp\\status.txt"
>> state=present
>>
>> When I use the wait_for module for the winrm port, then it works fine:
>>
>> - name: Wait for remote host
>> wait_for: host={{ floating_ip }} port=5986 state=started
>>
>>
>> Any idea, how to wait in Windows for a file until it is present?
>>
>>
>> Thanks in advance!
>>
>> KR,
>> Stavros
>>
>>
>>
--
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/75c46d15-ab56-4665-b0ac-25c18f944693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.