mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-17 17:14:20 +01:00
Fix for plugin version check
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
when: es_version | version_compare('2.0', '<')
|
when: es_version | version_compare('2.0', '<')
|
||||||
|
|
||||||
#List currently installed plugins - ignore xpack if > v 2.0
|
#List currently installed plugins - ignore xpack if > v 2.0
|
||||||
- shell: "{{es_home}}/bin/plugin {{list_command}} | sed -n '1!p' | cut -d '-' -f2-{% if {{es_version}} | version_compare('2.0', '>') %} | grep -vE 'shield|watcher|marvel-agent|graph'{% endif %}"
|
- shell: "{{es_home}}/bin/plugin {{list_command}} | sed -n '1!p' | cut -d '-' -f2-{% if es_version | version_compare('2.0', '>') %} | grep -vE '{{supported_xpack_features | join('|')}}'{% endif %}"
|
||||||
register: installed_plugins
|
register: installed_plugins
|
||||||
changed_when: False
|
changed_when: False
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user