Move opendistro install to task specific OS
This commit is contained in:
parent
34f06a85ab
commit
e2ce83af3d
@ -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
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user