Skip to content

Commit

Permalink
Added task to wait for es to startup. Adding templates failed sometim…
Browse files Browse the repository at this point in the history
…es if startup wasn't completed
  • Loading branch information
jakommo committed Sep 14, 2015
1 parent eefcf56 commit 74f0947
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/elasticsearch-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: Copy templates to elasticsearch
copy: src=templates dest=/etc/elasticsearch/

- name: Wait for elasticsearch to startup
wait_for: port=9200 delay=10

- name: Get template files
shell: find . -maxdepth 1 -type f | sed "s#\./##" | sed "s/.json//" chdir=/etc/elasticsearch/templates
register: resultstemplate
Expand Down

0 comments on commit 74f0947

Please sign in to comment.