638-opendistro-documentation-from4.2

This commit is contained in:
Nicolas Lastra 2021-10-13 15:02:06 -03:00
parent 1d7ee3af33
commit bef955f837
No known key found for this signature in database
GPG Key ID: 749E0D60DEC5E4D8
2 changed files with 10 additions and 0 deletions

View File

@ -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:

View File

@ -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/