mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Added with_fileglob loop to script and template
This allows the user to set the `es_template_fileglob` or `es_scripts_fileglob` variables in order to specify a directory of index templates or scripts. Issue #57
This commit is contained in:
@@ -10,4 +10,5 @@
|
|||||||
when: es_config['path.scripts'] is defined
|
when: es_config['path.scripts'] is defined
|
||||||
|
|
||||||
- name: Copy scripts to elasticsearch
|
- name: Copy scripts to elasticsearch
|
||||||
copy: src=scripts dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
|
copy: src={{ item }} dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
|
||||||
|
with_fileglob: es_scripts_fileglob | default("scripts")
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Copy templates to elasticsearch
|
- name: Copy templates to elasticsearch
|
||||||
copy: src=templates dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
|
copy: src={{ item }} dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
|
||||||
|
with_fileglob: es_templates_fileglob | default("templates")
|
||||||
|
|
||||||
- set_fact: http_port=9200
|
- set_fact: http_port=9200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user