mirror of https://github.com/ansible/ansible.git
Make pip test work with versioned virtualenv. (#54483)
parent
9e93a84429
commit
6e12517164
@ -1,5 +1,17 @@
|
|||||||
# Current pip unconditionally uses md5.
|
# Current pip unconditionally uses md5.
|
||||||
# We can re-enable if pip switches to a different hash or allows us to not check md5.
|
# We can re-enable if pip switches to a different hash or allows us to not check md5.
|
||||||
|
|
||||||
|
- name: find virtualenv command
|
||||||
|
command: "which virtualenv virtualenv-{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}"
|
||||||
|
register: command
|
||||||
|
failed_when: not command.stdout_lines
|
||||||
|
|
||||||
|
- name: remember selected virtualenv command
|
||||||
|
set_fact:
|
||||||
|
virtualenv: "{{ command.stdout_lines[0] }}"
|
||||||
|
|
||||||
- include: 'pip.yml'
|
- include: 'pip.yml'
|
||||||
when: ansible_fips|bool != True
|
when: ansible_fips|bool != True
|
||||||
|
module_defaults:
|
||||||
|
pip:
|
||||||
|
virtualenv_command: "{{ virtualenv }}"
|
||||||
|
Loading…
Reference in New Issue