Maybe Thomas should change wait_for conditions a little and wait until curl
gets a page content instead of just checking port?
I'm not sure how to do this in ansible :(

btw. Hi, I'm new here ;) Greetings from Poland.

On Fri, Feb 13, 2015 at 3:53 PM, Giovanni Tirloni <[email protected]> wrote:

> 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.
>



-- 
jarek@reijutsu:~$ fortune
You have Egyptian flu: you're going to be a mummy.
jarek@reijutsu:~$ fortune
You now have Asian Flu.

-- 
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/CAFBSdJw6feo99tT0KneXemtfa%3DvpURxZqsprVzBuowBhCmO6Qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to