]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-docker-cluster: pip is only used on Debian 1568/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 30 May 2017 20:06:46 +0000 (15:06 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 31 May 2017 14:03:44 +0000 (09:03 -0500)
We only need to purge packages installed by pip on Debian systems.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
infrastructure-playbooks/purge-docker-cluster.yml

index 1104287792572063dc2a573b3a3a167c2512c6ad..d7c9d83509a3e8a0ec56d35006bd271c08fb87cb 100644 (file)
       enabled: no
     when: not is_atomic
 
-  - name: remove docker-py
+  - name: remove docker-py on Debian
     pip:
       name: docker-py
-      version: 1.1.0
       state: absent
     when:
-      ansible_version['full'] | version_compare('2.1.0.0', '<') and
-      not is_atomic
+      - ansible_distribution == 'Debian'
 
-  - name: remove docker-py
-    pip:
-      name: docker-py
-      state: absent
-    when:
-      ansible_version['full'] | version_compare('2.1.0.0', '>=') and
-      not is_atomic
-
-  - name: remove six
+  - name: remove six on Debian
     pip:
       name: six
-      version: 1.9.0
       state: absent
-    when: not is_atomic
+    when:
+      - ansible_distribution == 'Debian'
 
   - name: remove pip and docker on ubuntu
     apt: