Check elasticsearch-plugin performance-analyzer is install
This commit is contained in:
parent
17a0d96fbb
commit
b0864ea377
@ -11,9 +11,18 @@
|
|||||||
- import_tasks: Debian.yml
|
- import_tasks: Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
|
- name: Check elasticsearch-plugin performance-analyzer is install
|
||||||
|
become: true
|
||||||
|
command: ./elasticsearch-plugin list | grep 'opendistro-performance-analyzer'
|
||||||
|
register: elasticsearch_performance
|
||||||
|
args:
|
||||||
|
chdir: /usr/share/elasticsearch/bin/
|
||||||
|
|
||||||
- name: Remove performance analyzer plugin from elasticsearch
|
- name: Remove performance analyzer plugin from elasticsearch
|
||||||
become: true
|
become: true
|
||||||
command: ./elasticsearch-plugin remove opendistro-performance-analyzer
|
command: ./elasticsearch-plugin remove opendistro-performance-analyzer
|
||||||
|
when: elasticsearch_performance == 'opendistro-performance-analyzer'
|
||||||
|
ignore_errors: true
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/elasticsearch/bin/
|
chdir: /usr/share/elasticsearch/bin/
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user