From 75ce1e587fac56d1a1c8742d9842da439676a715 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 16 Feb 2016 19:17:07 -0500 Subject: [PATCH] Install yum on Fedora 22 and higher Existing tasks like gpg_keys.yml rely on the yum module This is temporary until we can move to ansible v2.0's package module Signed-off-by: David Galloway --- roles/common/tasks/yum_systems.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/common/tasks/yum_systems.yml b/roles/common/tasks/yum_systems.yml index 0c647c3..a34579e 100644 --- a/roles/common/tasks/yum_systems.yml +++ b/roles/common/tasks/yum_systems.yml @@ -39,6 +39,15 @@ tags: - timezone +# This is temporary to provide reverse compatibility with certain +# tasks that call yum specifically. +# Should be deprecated once we move to ansible v2 +- name: Install yum on Fedora 22 and later + dnf: + name: yum + state: present + when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int >= 22 + # configure Red Hat entitlements with subscription-manager - include: rhel-entitlements.yml when: ansible_distribution == 'RedHat' -- 2.39.5