]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Install pip on Fedora 22
authorDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2016 20:47:33 +0000 (15:47 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2016 22:19:10 +0000 (17:19 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/pip.yml
roles/testnode/vars/fedora_22.yml

index b9473e36ce6089af63e2eade08ff535200c063bf..0b0800dffdf76e21a54103acc0f4b1798ca7bf53 100644 (file)
@@ -1,16 +1,17 @@
 ---
+# python-pip installed during packages task on Fedora since epel doesn't exist
 - name: Install python-pip on rpm based systems.
   yum:
     name: python-pip
     state: present
     enablerepo: epel
-  when: ansible_pkg_mgr  == "yum"
+  when: ansible_pkg_mgr == "yum" and ansible_distribution != 'Fedora'
 
 - name: Install python-pip on apt based systems.
   apt:
     name: python-pip
     state: present
-  when: ansible_pkg_mgr  == "apt"
+  when: ansible_pkg_mgr == "apt"
 
 - name: Create the .pip directory for the teuthology user.
   file:
index 2f086ea8f714f56af7803f328cc75e15f29c4053..2c911b6fc7e303d9419b88ea46d176aab975669c 100644 (file)
@@ -74,3 +74,5 @@ packages:
   - smartmontools
   # for nfs
   - nfs-utils
+  # python-pip is installed via roles/testnode/tasks/pip.yml on other rpm-based distros
+  - python-pip