1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-11 14:35:06 +00:00

pipx: add required_if fo upgrade and reinstall (#5100) (#5102)

* pipx: add required_if for upgrade and reinstall

* add changelog fragment

(cherry picked from commit 83317419d7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2022-08-09 10:29:22 +02:00 committed by GitHub
parent 0d598c3542
commit e962da8b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 2 deletions

View file

@ -164,7 +164,8 @@ class PipX(StateModuleHelper):
('state', 'install', ['name']),
('state', 'absent', ['name']),
('state', 'uninstall', ['name']),
# missing upgrade and reinstall requiring 'name'
('state', 'upgrade', ['name']),
('state', 'reinstall', ['name']),
('state', 'inject', ['name', 'inject_packages']),
],
supports_check_mode=True,