routine optimization
This commit is contained in:
parent
bef955f837
commit
e1bc568a55
@ -11,17 +11,10 @@
|
|||||||
- import_tasks: Debian.yml
|
- import_tasks: Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
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
|
- 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
|
ignore_errors: true
|
||||||
args:
|
args:
|
||||||
chdir: /usr/share/elasticsearch/bin/
|
chdir: /usr/share/elasticsearch/bin/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user