mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Updated pip module to always return changed if venv is created (#24233)
* Updated pip module to always return changed if venv is created Fixes #23204 * Add integration test to pip (see #23204)
This commit is contained in:
committed by
Toshio Kuratomi
parent
1e2ce4c8ab
commit
6dbc3c63f8
@@ -166,3 +166,20 @@
|
||||
assert:
|
||||
that:
|
||||
- "not q_check_mode.changed"
|
||||
|
||||
# ansible#23204
|
||||
- name: ensure is a fresh virtualenv
|
||||
file:
|
||||
state: absent
|
||||
name: "{{ output_dir }}/pipenv"
|
||||
|
||||
- name: install pip throught pip into fresh virtualenv
|
||||
pip:
|
||||
name: pip
|
||||
virtualenv: "{{ output_dir }}/pipenv"
|
||||
register: pip_install_venv
|
||||
|
||||
- name: make sure pip in fresh virtualenv report changed
|
||||
assert:
|
||||
that:
|
||||
- "pip_install_venv.changed"
|
||||
|
||||
Reference in New Issue
Block a user