You're probably after the "Do until" example found in the 
docs: http://docs.ansible.com/ansible/playbooks_loops.html



On Monday, January 2, 2017 at 3:59:01 AM UTC+1, Qian Zhang wrote:
>
> Hi,
>
> I am going to use Ansible to deploy Elasticsearch and Logstash. Before 
> deploying Logstash, I'd like to check if the health status of Elasticsearch 
> cluster is green or not, e.g.,
>
> $ curl -s 127.0.0.1:9200/_cat/health?v 
> epoch             timestamp     cluster                        status 
> 1482992016   06:13:36       elasticsearch-default  green
>
> It will take some time for Elasticsearch cluster to become healthy, so I'd 
> like to check it in a loop until it become healthy or timeout. Is it 
> possible to do this with Ansible? Thanks!
>
>
>
> Regards,
> Qian
>

-- 
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/5558bd57-9dbc-4ca9-a316-3d07fd9e9d24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to