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:
parent
f89f56bc34
commit
3e265a467d
3 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue