]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Move install of python-pip to pip.yml
authorAndrew Schoen <aschoen@redhat.com>
Sat, 21 Mar 2015 21:17:08 +0000 (16:17 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 24 Mar 2015 00:18:51 +0000 (17:18 -0700)
This makes the pip.conf and .pip directory tasks idempotent.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/common/tasks/main.yml
roles/common/tasks/pip.yml
roles/common/vars/yum_systems.yml

index ec883bf870cd6299ef60edc1969f7fc5c9665514..de7ff22befc573827a29fb1270a5e64518ba371c 100644 (file)
@@ -4,9 +4,6 @@
   tags:
     - vars
 
-# configure pip to use our mirror
-- include: pip.yml
-
 - name: Set a high max open files limit for the teuthology user.
   template:
     src: security_limits.conf
@@ -28,3 +25,8 @@
 # configure red hat specific things
 - include: setup-redhat.yml
   when: ansible_os_family == 'RedHat'
+
+# configure pip to use our mirror
+- include: pip.yml
+  tags:
+    - pip
index 0fe23ab6b3c1d013b5d2a37f8f04d52d0fc03d11..619c66112cb9b8e49400925d12fad1b9a0a42fba 100644 (file)
@@ -1,4 +1,16 @@
 ---
+- name: Install python-pip on rpm based systems.
+  yum:
+    name: python-pip
+    state: present
+  when: ansible_pkg_mgr  == "yum"
+
+- name: Install python-pip on deb based systems.
+  apt:
+    name: python-pip
+    state: present
+  when: ansible_pkg_mgr  == "deb"
+
 - name: Create the .pip directory for the teuthology user.
   file:
     path: "/home/{{ teuthology_user }}/.pip"
index 4002ef973e499865eaeacbe0eb7a679eb849bcf8..cfc2c752890bbe81478e5ab466db37582cd1c3db 100644 (file)
@@ -67,7 +67,6 @@ packages:
   - httpd-tools
   - mod_ssl
   - mod_fastcgi-2.4.7-1.ceph.el7
-  - python-pip
   - libevent-devel
   - perl-JSON-XS
   - perl-XML-Twig