From: David Galloway Date: Wed, 17 Feb 2016 00:17:07 +0000 (-0500) Subject: Install yum on Fedora 22 and higher X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=75ce1e587fac56d1a1c8742d9842da439676a715;p=ceph-cm-ansible.git 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 --- diff --git a/roles/common/tasks/yum_systems.yml b/roles/common/tasks/yum_systems.yml index 0c647c3f..a34579e3 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'