mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
script fixes
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
---
|
||||
|
||||
- set_fact: es_script_dir={{ es_conf_dir }}/{{es_instance_name}}/scripts
|
||||
- set_fact: es_script_dir={{ es_conf_dir }}/{{es_instance_name}}
|
||||
|
||||
- set_fact: es_script_dir={{es_config['path.scripts']}}
|
||||
when: es_config['path.scripts'] is defined
|
||||
|
||||
- name: Create script dir
|
||||
file: state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
|
||||
when: es_config['path.scripts'] is defined
|
||||
|
||||
- name: Copy scripts to elasticsearch
|
||||
copy: src={{es_scripts_src}} dest={{ es_script_dir }}
|
||||
copy: src=scripts dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
#TODO: How to handle in multi node
|
||||
# 1. Template directory needs to be specifiable. 2. Port needs to based on configuration
|
||||
- name: Copy templates to elasticsearch
|
||||
copy: src=templates dest=/etc/elasticsearch/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user