mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Make prefix available when es_plugins is not defined
This commit is contained in:
@@ -10,11 +10,6 @@
|
|||||||
- set_fact: list_command="--list"
|
- set_fact: list_command="--list"
|
||||||
when: es_version | version_compare('2.0', '<')
|
when: es_version | version_compare('2.0', '<')
|
||||||
|
|
||||||
- set_fact: es_binary_prefix=""
|
|
||||||
|
|
||||||
- set_fact: es_binary_prefix="elasticsearch-"
|
|
||||||
when: es_version | version_compare('5.0', '>=')
|
|
||||||
|
|
||||||
#List currently installed plugins - ignore xpack if > v 2.0
|
#List currently installed plugins - ignore xpack if > v 2.0
|
||||||
- name: Check installed elasticsearch plugins
|
- name: Check installed elasticsearch plugins
|
||||||
shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin {{list_command}}{% if es_version | version_compare('5.0', '<') %} | sed -n '1!p' | cut -d '-' -f2-{% endif %}{% if es_version | version_compare('2.0', '>') %} | grep -vE '{{supported_xpack_features | join('|')}}|license'{% endif %}"
|
shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin {{list_command}}{% if es_version | version_compare('5.0', '<') %} | sed -n '1!p' | cut -d '-' -f2-{% endif %}{% if es_version | version_compare('2.0', '>') %} | grep -vE '{{supported_xpack_features | join('|')}}|license'{% endif %}"
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- set_fact: es_binary_prefix=""
|
||||||
|
|
||||||
|
- set_fact: es_binary_prefix="elasticsearch-"
|
||||||
|
when: es_version | version_compare('5.0', '>=')
|
||||||
|
|
||||||
- name: Include optional user and group creation.
|
- name: Include optional user and group creation.
|
||||||
when: (es_user_id is defined) and (es_group_id is defined)
|
when: (es_user_id is defined) and (es_group_id is defined)
|
||||||
include: elasticsearch-optional-user.yml
|
include: elasticsearch-optional-user.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user