Add binary prefix for version 5.x
This commit is contained in:
parent
56837b0627
commit
2771eb2a92
3 changed files with 19 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
|
||||
#Test if feature is installed
|
||||
- shell: "{{es_home}}/bin/plugin list | sed -n '1!p' | grep {{item}}"
|
||||
- shell: "{{es_home}}/bin/{{ es_binary_prefix }}plugin list | sed -n '1!p' | grep {{item}}"
|
||||
register: feature_installed
|
||||
changed_when: False
|
||||
failed_when: "'ERROR' in feature_installed.stdout"
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
#Remove Plugin if installed and its not been requested or the ES version has changed
|
||||
- name: Remove {{item}} plugin
|
||||
command: >
|
||||
{{es_home}}/bin/plugin remove shield
|
||||
{{es_home}}/bin/{{ es_binary_prefix }}plugin remove shield
|
||||
register: xpack_state
|
||||
failed_when: "'ERROR' in xpack_state.stdout"
|
||||
changed_when: xpack_state.rc == 0
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
#Install plugin if not installed, or the es version has changed (so removed above), and its been requested
|
||||
- name: Install {{item}} plugin
|
||||
command: >
|
||||
{{es_home}}/bin/plugin install {{item}}
|
||||
{{es_home}}/bin/{{ es_binary_prefix }}plugin install {{item}}
|
||||
register: xpack_state
|
||||
failed_when: "'ERROR' in xpack_state.stdout"
|
||||
changed_when: xpack_state.rc == 0
|
||||
|
|
@ -36,4 +36,4 @@
|
|||
notify: restart elasticsearch
|
||||
environment:
|
||||
CONF_DIR: "{{ conf_dir }}"
|
||||
ES_INCLUDE: "{{ instance_default_file }}"
|
||||
ES_INCLUDE: "{{ instance_default_file }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue