routine optimization

This commit is contained in:
Nicolas Lastra 2021-10-14 12:24:19 -03:00
parent a12908b667
commit ccc3aaca0e
No known key found for this signature in database
GPG Key ID: 749E0D60DEC5E4D8

View File

@ -11,17 +11,9 @@
- import_tasks: Debian.yml
when: ansible_os_family == 'Debian'
- name: Check if performance-analyzer is installed
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/