Tests for templates
This commit is contained in:
parent
23c8bdb7de
commit
61fa65d161
5 changed files with 35 additions and 5 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#TODO: How to handle in multi node
|
||||
# 1. Template directory needs to be specifiable
|
||||
- name: Copy templates to elasticsearch
|
||||
copy: src=templates dest=/etc/elasticsearch/
|
||||
copy: src=templates dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
|
||||
|
||||
- set_fact: http_port=9200
|
||||
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
|
||||
- name: Install template(s)
|
||||
command: "curl -sL -XPUT http://localhost:{{http_port}}/_template/{{item}} -d @/etc/elasticsearch/templates/{{item}}.json"
|
||||
with_items: resultstemplate.stdout_lines
|
||||
with_items: resultstemplate.stdout_lines
|
||||
Loading…
Add table
Add a link
Reference in a new issue