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

15 lines
542 B
YAML
Raw Normal View History

---
- file: path=/etc/elasticsearch/templates state=directory owner={{ es_user }} group={{ es_group }}
- name: Copy default templates to elasticsearch
copy: src=templates dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
notify: load-templates
when: es_templates_fileglob is not defined
- name: Copy templates to elasticsearch
copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }}
notify: load-templates
with_fileglob:
2016-08-30 12:30:54 +01:00
- "{{ es_templates_fileglob | default('') }}"