Added task to wait for es to startup. Adding templates failed sometimes if startup wasn't completed
This commit is contained in:
parent
0f00817f75
commit
ec2105dc6a
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue