Version 2.X does need the filter to parse the plugin output
This commit is contained in:
parent
bfb74b96a4
commit
d341a4c0ea
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#List currently installed plugins - ignore xpack if > v 2.0
|
||||
- name: Check installed elasticsearch plugins
|
||||
shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin {{list_command}}{% 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 %}"
|
||||
register: installed_plugins
|
||||
failed_when: "'ERROR' in installed_plugins.stdout"
|
||||
changed_when: False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue