[ansible-project] Re: wait_for a windows file

2017-06-09 Thread Paul Farrington
Hi Stavros, Thanks for the reply, i came to a similar conclusion which i am working on at the moment. I am deploying via a VMware customization spec and need to wait for it to complete so i am going to use the powershell Listen-Port module and fire that up on a RunOnce. Then ill use

[ansible-project] Re: wait_for a windows file

2017-06-08 Thread Stavros
Paul, I did resolve it by using the following workaround: First of all I searched for a Windows Service in the target host that was not used (it was in the manual status) and in case it would be started, then it should use a certain port for listening. With Ansible: - I scheduled a Windows job

[ansible-project] Re: wait_for a windows file

2017-06-08 Thread mattdavi
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

[ansible-project] Re: wait_for a windows file

2017-06-08 Thread Paul Farrington
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 >

[ansible-project] Re: wait_for a windows file

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Hmm wait_for is a python module. waiting for the port will work fine as that will presumably be happening on the ansible controller, rather than remotely on the machine you are trying to access. If only waiting for a file will do then you could try using the fetch module to pull the file back