Gracefully remove default elasticsearch package when upgrading to the

oss version
This commit is contained in:
Michael Russell 2018-06-18 12:01:45 +02:00
parent d451d27723
commit 6d6fc3a7cb
No known key found for this signature in database
GPG key ID: A90C1696496085FE
2 changed files with 32 additions and 0 deletions

View file

@ -13,6 +13,13 @@
include: elasticsearch-RedHat-version-lock.yml
when: es_version_lock
- name: RedHat - Remove non oss package if the old elasticsearch package is installed
become: yes
yum:
name: 'elasticsearch'
state: 'absent'
when: es_package_name == 'elasticsearch-oss'
- name: RedHat - Install Elasticsearch
become: yes
yum: