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

Commit

Permalink
Merge pull request #484 from kimoto/yum_allow_downgrade
Browse files Browse the repository at this point in the history
es_allow_downgrades parameter is ignoring yum
  • Loading branch information
Crazybus committed Aug 15, 2018
2 parents 3e12364 + 91f179d commit 56ebb5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/elasticsearch-RedHat.yml
@@ -1,4 +1,11 @@
---
- name: set fact allow_downgrade to no
set_fact: allow_downgrade=no

- name: set fact allow_downgrade to yes
set_fact: allow_downgrade=yes
when: es_allow_downgrades

- name: Ensure libselinux-python on CentOS 6.x
become: yes
yum: name=libselinux-python state=present update_cache=yes
Expand Down Expand Up @@ -26,6 +33,7 @@
name: '{{ es_package_name }}{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %}'
state: present
update_cache: yes
allow_downgrade: '{{ allow_downgrade }}'
when: es_use_repository
register: redhat_elasticsearch_install_from_repo
notify: restart elasticsearch
Expand Down

0 comments on commit 56ebb5a

Please sign in to comment.