Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 56ebb5a

Browse files
authored
Merge pull request #484 from kimoto/yum_allow_downgrade
es_allow_downgrades parameter is ignoring yum
2 parents 3e12364 + 91f179d commit 56ebb5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/elasticsearch-RedHat.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
---
2+
- name: set fact allow_downgrade to no
3+
set_fact: allow_downgrade=no
4+
5+
- name: set fact allow_downgrade to yes
6+
set_fact: allow_downgrade=yes
7+
when: es_allow_downgrades
8+
29
- name: Ensure libselinux-python on CentOS 6.x
310
become: yes
411
yum: name=libselinux-python state=present update_cache=yes
@@ -26,6 +33,7 @@
2633
name: '{{ es_package_name }}{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %}'
2734
state: present
2835
update_cache: yes
36+
allow_downgrade: '{{ allow_downgrade }}'
2937
when: es_use_repository
3038
register: redhat_elasticsearch_install_from_repo
3139
notify: restart elasticsearch

0 commit comments

Comments
 (0)