638-opendistro-documentation-from4.2
This commit is contained in:
parent
1d7ee3af33
commit
bef955f837
@ -14,6 +14,7 @@
|
||||
repo: "{{ package_repos.apt.openjdk.baseurl }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: (ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "9")
|
||||
|
||||
- name: Install openjdk-11-jdk
|
||||
apt:
|
||||
|
||||
@ -11,9 +11,18 @@
|
||||
- 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/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user