On Fri, 13 Feb 2015 06:03 -0800, [email protected] wrote:
> Hi Giovanni!
> 
> Using wait_for did not work, that is why I changed to using pause. I
> would 
> have preferred to use wait_for.
> My question is: Under what circumstances would "wait_for: port=8000"
> fail, 
> when "command: curl localhost:8000" (after waiting for the server) would 
> succeed?

Even with the 'delay' parameter, wait_for still doesn't work? That would
make wait_for wait as many seconds as needed for the service to start,
so you avoid trying to connect uselessly (and possibly having to wait
for a timeout to expire).

If a pause fixes this for you, it could be a timing issue. The server
could be listening on the port but not accepting new connections yet, or
something related, I'm guessing.

Giovanni

-- 
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/1423839217.234383.227132473.5EA49193%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to