Fix for detecting es version changed
This commit is contained in:
parent
0a269a3d82
commit
9eacd3a5e0
5 changed files with 20 additions and 6 deletions
|
|
@ -11,8 +11,9 @@
|
|||
when: es_version | version_compare('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 '{{supported_xpack_features | join('|')}}'{% 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('|')}}|license'{% endif %}"
|
||||
register: installed_plugins
|
||||
failed_when: "'ERROR' in installed_plugins.stdout"
|
||||
changed_when: False
|
||||
ignore_errors: yes
|
||||
environment:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue