Skip to content

Commit

Permalink
Merge pull request #311 from StackStorm/fix_el8
Browse files Browse the repository at this point in the history
Allow Erlang version on EL8 to be pinned, and by default use < 25
  • Loading branch information
amanda11 authored May 19, 2022
2 parents 9a97b38 + 5be4ddf commit 02b5ffb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/StackStorm.rabbitmq/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ rabbitmq_plugins: []
# - rabbitmq_management
# Set to "present" to install latest version, or specify specific version
rabbitmq_version: "present"
# Use version or wildcard
erlang_version: "{% if ansible_facts.os_family == 'Redhat' and ansible_facts.distribution_major_version == '8' %}24*{% else %}present{% endif %}"
13 changes: 13 additions & 0 deletions roles/StackStorm.rabbitmq/tasks/rabbitmq_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,16 @@
delay: 3
until: _eltask is succeeded
tags: rabbitmq
when: erlang_version == "present"

- name: Install pinned erlang package on {{ ansible_facts.distribution }}
become: yes
package:
name: erlang-{{ erlang_version }}
state: present
register: _eltask
retries: 5
delay: 3
until: _eltask is succeeded
tags: rabbitmq
when: erlang_version != "present"

0 comments on commit 02b5ffb

Please sign in to comment.