ansible-role-elasticsearch/tasks/elasticsearch-scripts.yml

13 lines
458 B
YAML
Raw Normal View History

---
2015-11-25 17:13:45 +00:00
2015-11-25 18:31:03 +00:00
- set_fact: es_script_dir={{ es_conf_dir }}/{{es_instance_name}}
2015-11-25 17:13:45 +00:00
- set_fact: es_script_dir={{es_config['path.scripts']}}
2015-11-25 17:40:28 +00:00
when: es_config['path.scripts'] is defined
2015-11-25 17:13:45 +00:00
- name: Create script dir
file: state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
2015-11-25 18:31:03 +00:00
when: es_config['path.scripts'] is defined
2015-11-25 17:13:45 +00:00
- name: Copy scripts to elasticsearch
2015-11-25 18:31:03 +00:00
copy: src=scripts dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}