Allow switching between oss and standard packages

Before only going from the standard package to oss was supported. Now
this works properly in both directions.
This commit is contained in:
Michael Russell 2018-12-27 16:42:14 +01:00
parent f89f56bc34
commit 3e265a467d
No known key found for this signature in database
GPG key ID: A90C1696496085FE
3 changed files with 9 additions and 9 deletions

View file

@ -14,6 +14,7 @@
es_xpack_conf_subdir: ""
es_repo_name: "{{ es_major_version }}"
es_xpack_users_command: "elasticsearch-users"
es_other_package_name: "elasticsearch-oss"
- name: Detect if es_version is before X-Pack was open and included
set_fact:
@ -33,6 +34,7 @@
set_fact:
es_repo_name: "{{ 'oss-' + es_major_version }}"
es_package_name: "elasticsearch-oss"
es_other_package_name: "elasticsearch"
when:
- es_open_xpack
- not es_enable_xpack