Use yum whe installing RabbitMQ

The version of dnf that comes with CentOS 7 does not come with
versionlock support. This causes the locks for RabbitMQ and erlang
to be ignored, which breaks the gate.

Closes-Bug: 1717376
Change-Id: Ifd8cd5a7f26c044564b5e8f64398f59636d62200
This commit is contained in:
Major Hayden
2017-09-14 16:26:25 -06:00
parent 925771f77f
commit a74c237cf7

View File

@@ -118,9 +118,10 @@
# NOTE(mhayden): With the version locks applied, this step will install
# the correct version of RabbitMQ along with the correct version of the
# all-in-one erlang package.
# all-in-one erlang package. Also, the version of dnf that comes with CentOS
# 7 doesn't have version lock support, so we must use yum here.
- name: Install RabbitMQ packages
package:
yum:
name: "{{ rabbitmq_distro_packages }}"
state: "{{ rabbitmq_package_state }}"
register: install_rabbitmq