Skip to content

Instantly share code, notes, and snippets.

@oboukili
Created May 26, 2017 09:38
Show Gist options
  • Select an option

  • Save oboukili/759af2d1c0da2778ac74490de88c2050 to your computer and use it in GitHub Desktop.

Select an option

Save oboukili/759af2d1c0da2778ac74490de88c2050 to your computer and use it in GitHub Desktop.
es
- name: Wait for elasticsearch cluster replica shards to be fully allocated for 5 minutes.
uri:
url: http://localhost:9200/_cluster/health?wait_for_no_relocating_shards=true&timeout=5s
return_content: true
register: elasticsearch_cluster_health
until: elasticsearch_cluster_health.json.status == "green"
retries: 100
when: groups['elasticsearch']|length > 1
environment:
http_proxy: ''
https_proxy: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment