Scripts and Templates to use default files directory
This commit is contained in:
parent
b8a077e8bd
commit
cea57cdd73
4 changed files with 14 additions and 6 deletions
|
|
@ -1,8 +1,14 @@
|
|||
---
|
||||
|
||||
- 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 }}
|
||||
when: es_templates_fileglob is not defined
|
||||
|
||||
- name: Copy templates to elasticsearch
|
||||
copy: src={{ item }} dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
|
||||
with_fileglob: es_templates_fileglob | default("templates")
|
||||
with_fileglob: es_templates_fileglob
|
||||
|
||||
- set_fact: http_port=9200
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue