From f739bf395345e12f5c7f613dcac1181a5dfe9298 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 2 Aug 2017 13:21:15 -0500 Subject: [PATCH] Add dnf support This patch adds dnf support for CentOS. Implements: blueprint centos-and-dnf Change-Id: I769576a944c07a295c3a81a2192f7d5f7b6ecfa4 --- tasks/install_dnf.yml | 1 + tasks/install_yum.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 120000 tasks/install_dnf.yml diff --git a/tasks/install_dnf.yml b/tasks/install_dnf.yml new file mode 120000 index 00000000..d72e1ea3 --- /dev/null +++ b/tasks/install_dnf.yml @@ -0,0 +1 @@ +install_yum.yml \ No newline at end of file diff --git a/tasks/install_yum.yml b/tasks/install_yum.yml index f252853c..3800cafd 100644 --- a/tasks/install_yum.yml +++ b/tasks/install_yum.yml @@ -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