Check elasticsearch-plugin performance-analyzer is install

This commit is contained in:
Nicolas Lastra 2021-10-12 18:42:06 -03:00
parent 17a0d96fbb
commit b0864ea377
No known key found for this signature in database
GPG Key ID: 749E0D60DEC5E4D8

View File

@ -11,9 +11,18 @@
- import_tasks: Debian.yml
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
become: true
command: ./elasticsearch-plugin remove opendistro-performance-analyzer
when: elasticsearch_performance == 'opendistro-performance-analyzer'
ignore_errors: true
args:
chdir: /usr/share/elasticsearch/bin/