Version 2.X does need the filter to parse the plugin output

This commit is contained in:
Maarten Bezemer 2016-11-04 15:56:27 +01:00
parent bfb74b96a4
commit d341a4c0ea
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
---
#Test if feature is installed
- shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin list | sed -n '1!p' | grep {{item}}"
- shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin list{% if es_version | version_compare('5.0', '<') %} | sed -n '1!p' | cut -d '-' -f2-{% endif %} | grep {{item}}"
register: feature_installed
changed_when: False
failed_when: "'ERROR' in feature_installed.stdout"