geerlingguy / ansible-role-elasticsearch

Ansible Role - Elasticsearch
https://galaxy.ansible.com/geerlingguy/elasticsearch/
MIT License
185 stars 209 forks source link

Test that ES is responding before finishing role tasks #25

Closed geerlingguy closed 8 years ago

geerlingguy commented 8 years ago

Since many Java apps (SonarQube, Jenkins, ES, et all) like to take 5-10 seconds on first boot, I like to make sure they're responding before moving forward in my playbooks.

Recently while Modernizing my ELK example I noticed that ES wasn't running by the time Logstash was installed, so Logstash bailed when it started due to ES not being available.