mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Use virtualenv in pip test to remove distribute.
This commit is contained in:
@@ -501,10 +501,22 @@
|
||||
state: absent
|
||||
|
||||
# https://github.com/ansible/ansible/issues/47198
|
||||
- name: make sure the virtualenv does not exist
|
||||
file:
|
||||
state: absent
|
||||
name: "{{ output_dir }}/pipenv"
|
||||
|
||||
- name: install distribute in the virtualenv
|
||||
pip:
|
||||
name: distribute
|
||||
virtualenv: "{{ output_dir }}/pipenv"
|
||||
state: present
|
||||
|
||||
- name: try to remove distribute
|
||||
pip:
|
||||
state: "absent"
|
||||
name: "distribute"
|
||||
virtualenv: "{{ output_dir }}/pipenv"
|
||||
ignore_errors: yes
|
||||
register: remove_distribute
|
||||
|
||||
|
||||
Reference in New Issue
Block a user