mirror of https://github.com/ceph/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 <aschoen@redhat.com>pull/1568/head
parent
ecdb6f4967
commit
f7677e4393
|
@ -360,29 +360,19 @@
|
|||
enabled: no
|
||||
when: not is_atomic
|
||||
|
||||
- name: remove docker-py
|
||||
pip:
|
||||
name: docker-py
|
||||
version: 1.1.0
|
||||
state: absent
|
||||
when:
|
||||
ansible_version['full'] | version_compare('2.1.0.0', '<') and
|
||||
not is_atomic
|
||||
|
||||
- name: remove docker-py
|
||||
- name: remove docker-py on Debian
|
||||
pip:
|
||||
name: docker-py
|
||||
state: absent
|
||||
when:
|
||||
ansible_version['full'] | version_compare('2.1.0.0', '>=') and
|
||||
not is_atomic
|
||||
- ansible_distribution == 'Debian'
|
||||
|
||||
- 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:
|
||||
|
|
Loading…
Reference in New Issue