On 2014-09-18 10:05 am, James Martin wrote:
I think a more "ansiblish" approach would be:

 - name: wait node {{ansible_hostname}}-{{service}}
 uri: url=http://localhost:9200/_cat/nodes?h=name
 timeout=120
 return_content=yes
 register: result
 until: (ansible_hostname + '-' + service) in result.content
 retries: 200
 delay: 3

Oh!  I like that.  Thanks!

--[Lance]

--
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/5e01e82847f5f91e09b72c744fc68954%40webmail.bearcircle.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to