How about wait_for? - wait_for: host=SOME_URL port=80 delay=20 state=started
Edgars svētdiena, 2015. gada 25. janvāris 02:36:35 UTC+1, Yaroslav Tkachenko rakstīja: > > Hey guys, > > I'm writing very simple task - I have a web app that I start and it takes > a few minutes before it goes online. I thought it can be done like this: > > - name: Waiting for the new environment to be online > uri: url=http://SOME_URL/api/heartbeat timeout=900 > async: 900 > poll: 10 > > But the problem is: SOME_URL is not resolvable instantly, it's a new DNS > record. So task fails with the error "msg: Unable to resolve the host name > given.". > Is there any way to solve this issue? > > Thanks! > -- 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/533af405-c2b1-4aeb-9c3e-cf237e491df4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
