mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
* 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:
parent
0d598c3542
commit
e962da8b9d
3 changed files with 18 additions and 2 deletions
|
@ -24,7 +24,6 @@
|
|||
community.general.pipx:
|
||||
name: tox
|
||||
register: install_tox_again
|
||||
ignore_errors: yes
|
||||
|
||||
- name: install application tox again force
|
||||
community.general.pipx:
|
||||
|
@ -61,12 +60,24 @@
|
|||
state: reinstall
|
||||
register: reinstall_tox_324
|
||||
|
||||
- name: reinstall without name
|
||||
community.general.pipx:
|
||||
state: reinstall
|
||||
register: reinstall_noname
|
||||
ignore_errors: yes
|
||||
|
||||
- name: upgrade tox 3.24.0
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
state: upgrade
|
||||
register: upgrade_tox_324
|
||||
|
||||
- name: upgrade without name
|
||||
community.general.pipx:
|
||||
state: upgrade
|
||||
register: upgrade_noname
|
||||
ignore_errors: yes
|
||||
|
||||
- name: downgrade tox 3.24.0
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
|
@ -94,6 +105,8 @@
|
|||
- downgrade_tox_324.application.tox.version == '3.24.0'
|
||||
- uninstall_tox_324 is changed
|
||||
- "'tox' not in uninstall_tox_324.application"
|
||||
- upgrade_noname is failed
|
||||
- reinstall_noname is failed
|
||||
|
||||
##############################################################################
|
||||
- name: ensure application ansible-lint is uninstalled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue