routine optimization

This commit is contained in:
Nicolas Lastra 2021-10-14 12:22:50 -03:00
parent bef955f837
commit e1bc568a55
No known key found for this signature in database
GPG Key ID: 749E0D60DEC5E4D8

View File

@ -11,17 +11,10 @@
- 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/