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/b8911554-0ab1-4c25-94fb-565ef4100fba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to