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

@ -20,12 +20,11 @@
include: elasticsearch-RedHat-version-lock.yml
when: es_version_lock
- name: RedHat - Remove non oss package if the old elasticsearch package is installed
- name: RedHat - Remove the other elasticsearch package if switching between OSS and standard
become: yes
yum:
name: 'elasticsearch'
name: es_other_package_name
state: 'absent'
when: es_package_name == 'elasticsearch-oss'
- name: RedHat - Install Elasticsearch
become: yes