From 8582b0954e3148eec6d8b3c24c04e3580528a9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fern=C3=A1ndez=20Aguilera?= Date: Thu, 29 Jul 2021 14:14:41 +0200 Subject: [PATCH] Improved removal of performance-analyzer plugin --- roles/opendistro/opendistro-elasticsearch/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/opendistro/opendistro-elasticsearch/tasks/main.yml b/roles/opendistro/opendistro-elasticsearch/tasks/main.yml index 0470e477..bea869a9 100644 --- a/roles/opendistro/opendistro-elasticsearch/tasks/main.yml +++ b/roles/opendistro/opendistro-elasticsearch/tasks/main.yml @@ -11,8 +11,11 @@ - import_tasks: Debian.yml when: ansible_os_family == 'Debian' - - name: Remove Performance analyzer plugin - command: "/usr/share/elasticsearch/bin/elasticsearch-plugin remove opendistro-performance-analyzer" + - name: Remove performance analyzer plugin from elasticsearch + become: true + command: ./elasticsearch-plugin remove opendistro-performance-analyzer + args: + chdir: /usr/share/elasticsearch/bin/ - name: Remove elasticsearch configuration file file: