Add dnf support

This patch adds dnf support for CentOS.

Implements: blueprint centos-and-dnf
Change-Id: I769576a944c07a295c3a81a2192f7d5f7b6ecfa4
This commit is contained in:
Major Hayden 2017-08-02 13:21:15 -05:00
parent fcf578b819
commit f739bf3953
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
2 changed files with 5 additions and 4 deletions

1
tasks/install_dnf.yml Symbolic link
View File

@ -0,0 +1 @@
install_yum.yml

View File

@ -86,7 +86,7 @@
- rabbitmq-repos
- name: Install yum versionlock plugin
yum:
package:
name: "yum-plugin-versionlock"
state: "{{ rabbitmq_package_state }}"
tags:
@ -100,7 +100,7 @@
- rabbitmq-yum-packages
- name: Install RabbitMQ package dependencies
yum:
package:
pkg: "{{ item }}"
state: "{{ rabbitmq_package_state }}"
update_cache: yes
@ -113,7 +113,7 @@
- rabbitmq-yum-packages
- name: Install RabbitMQ packages
yum:
package:
name: "{{ (rabbitmq_install_method == 'file') | ternary(rabbitmq_package_path, rabbitmq_distro_packages) }}"
register: install_rabbitmq
tags:
@ -121,7 +121,7 @@
- rabbitmq-yum-packages
- name: Install RabbitMQ package dependencies for external_repo usage
yum:
package:
pkg: "{{ item }}"
state: "{{ rabbitmq_package_state }}"
register: install_packages