mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Tests for templates
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user