Move opendistro install to task specific OS

This commit is contained in:
VictorMorenoJimenez 2021-03-31 12:58:01 +02:00
parent 34f06a85ab
commit e2ce83af3d
No known key found for this signature in database
GPG Key ID: CE9668E2E3083179
2 changed files with 9 additions and 6 deletions

View File

@ -39,5 +39,12 @@
- wget - wget
- unzip - unzip
- name: Install OpenDistro
package:
name: opendistroforelasticsearch-{{ opendistro_version }}
state: present
register: install
tags: install
tags: tags:
- install - install

View File

@ -8,12 +8,8 @@
- import_tasks: RedHat.yml - import_tasks: RedHat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: Install OpenDistro - import_tasks: Debian.yml
package: when: ansible_os_family == 'Debian'
name: opendistroforelasticsearch-{{ opendistro_version }}
state: present
register: install
tags: install
- name: Remove elasticsearch configuration file - name: Remove elasticsearch configuration file
file: file: