mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
pipx: Add support for system_site_packages (#6308)
* pipx: Add support for system_site_packages * Add changelog fragment
This commit is contained in:
parent
28bdf1ed74
commit
f93a1bf5ec
4 changed files with 41 additions and 2 deletions
|
@ -51,6 +51,34 @@
|
|||
- uninstall_tox is changed
|
||||
- "'tox' not in uninstall_tox.application"
|
||||
|
||||
##############################################################################
|
||||
- name: install application tox with system-site-packages
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
system_site_packages: true
|
||||
register: install_tox
|
||||
|
||||
- name: get raw pipx_info
|
||||
community.general.pipx_info:
|
||||
include_raw: true
|
||||
register: pipx_info_raw
|
||||
|
||||
- name: uninstall application tox
|
||||
community.general.pipx:
|
||||
state: absent
|
||||
name: tox
|
||||
register: uninstall_tox
|
||||
|
||||
- name: check assertions tox
|
||||
assert:
|
||||
that:
|
||||
- install_tox is changed
|
||||
- "'tox' in install_tox.application"
|
||||
- pipx_info_raw is not changed
|
||||
- "'--system-site-packages' in pipx_info_raw.raw_output.venvs.tox.metadata.venv_args"
|
||||
- uninstall_tox is changed
|
||||
- "'tox' not in uninstall_tox.application"
|
||||
|
||||
##############################################################################
|
||||
- name: install application tox 3.24.0
|
||||
community.general.pipx:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue