From: Andrew Schoen Date: Tue, 30 May 2017 20:06:46 +0000 (-0500) Subject: purge-docker-cluster: pip is only used on Debian X-Git-Tag: v2.3.0rc2~42^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f7677e439324800294e8c2f035566bfe44fcdc9c;p=ceph-ansible.git purge-docker-cluster: pip is only used on Debian We only need to purge packages installed by pip on Debian systems. Signed-off-by: Andrew Schoen --- diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index 110428779..d7c9d8350 100644 --- a/infrastructure-playbooks/purge-docker-cluster.yml +++ b/infrastructure-playbooks/purge-docker-cluster.yml @@ -360,29 +360,19 @@ 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: