ansible-role-elasticsearch/tasks/elasticsearch-scripts.yml
Jonathan Strootman 87bbff5279 Add always tags to set_fact tasks
Small correction to `when` clause in `tasks/elasticsearch-plugins.yml`.
2016-04-26 12:11:13 -07:00

21 lines
676 B
YAML

---
- set_fact: es_script_dir={{ es_conf_dir }}/{{es_instance_name}}
tags:
- always
- set_fact: es_script_dir={{es_config['path.scripts']}}
when: es_config['path.scripts'] is defined
tags:
- always
- name: Create script dir
file: state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
- name: Copy default scripts to elasticsearch
copy: src=scripts dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
when: es_scripts_fileglob is not defined
- name: Copy scripts to elasticsearch
copy: src={{ item }} dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
with_fileglob: es_scripts_fileglob