SUSE: Replace hardcoded version with Ansible fact
Upstream provides packages for 42.2 and 42.3 and they may also provide packages for 15.0 in the future so we should be using the host version obtained from the Ansible fact in order to get the correct package for the distribution. This also updates the role metadata information for openSUSE. Change-Id: Id6f9d056f4603bacc5e5009354127e562ea363da
This commit is contained in:
2 changed files with 2 additions and 4 deletions
@@ -28,9 +28,7 @@ galaxy_info:
- 7
- name:opensuse
versions:
- 42.1
- 42.2
- 42.3
- all
categories:
- cloud
- rabbitmq
@@ -17,7 +17,7 @@ _rabbitmq_install_method: distro
# These are all here as alternative ways to get the required packages either by
# installing the package directly or getting it from the CentOS mirror
_rabbitmq_package_url:"https://packagecloud.io/rabbitmq/rabbitmq-server/packages/opensuse/42.2/rabbitmq-server-3.7.5-1.suse.noarch.rpm/download.rpm"
_rabbitmq_package_url:"https://packagecloud.io/rabbitmq/rabbitmq-server/packages/opensuse/{{ ansible_distribution_major_version }}/rabbitmq-server-3.7.5-1.suse.noarch.rpm/download.rpm"
_rabbitmq_package_version:"{{ rabbitmq_package_url.split('/')[-2].rsplit('.', 1)[0] }}"
_rabbitmq_release_version:"{{ rabbitmq_package_version.split('-')[2] }}"
_rabbitmq_package_sha256:"58a1d5242c84cae1752f149eaf2f4d26d2d886eb5812c8eaf4c985494be2eabb"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.