Support --check mode for pip install --user
#71781
Labels
affects_2.11
bot_closed
feature
This issue/PR relates to a feature request.
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
packaging
Packaging category
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
Currently when we need to specify
pip install --user ...
, the--user
argument goes in as extra argument. This breaks theansible --check
mode, as illustrated byt he following commands:The code responsible for this behaviour is here:
ansible/lib/ansible/modules/pip.py
Line 719 in 195c8b4
I would like to request that we either add a separate parameter to request that pip installation is in the user site, or add a further analysis of the content of the extra args (and if it is only
--user
run the check mode). The latter option would transparently fix all current playbooks which erroneously reportchanged
.ISSUE TYPE
COMPONENT NAME
pip
moduleADDITIONAL INFORMATION
Could become:
The text was updated successfully, but these errors were encountered: