This makes the pip.conf and .pip directory tasks idempotent.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
   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
 # 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
 
 ---
+- 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"
 
   - httpd-tools
   - mod_ssl
   - mod_fastcgi-2.4.7-1.ceph.el7
-  - python-pip
   - libevent-devel
   - perl-JSON-XS
   - perl-XML-Twig