]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Install yum on Fedora 22 and higher
authorDavid Galloway <dgallowa@redhat.com>
Wed, 17 Feb 2016 00:17:07 +0000 (19:17 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 17 Feb 2016 00:28:14 +0000 (19:28 -0500)
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 <dgallowa@redhat.com>
roles/common/tasks/yum_systems.yml

index 0c647c3fb2c851c57caa12abaae763bdd032da8c..a34579e3e8e18153291fc64b01711b1b5cf95154 100644 (file)
   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'