Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Erlang version on EL8 to be pinned, and by default use < 25 #311

Merged
merged 3 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"