mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* pipx - fixed --include-apps bug
* added changelog fragment
* skipped freebsd for the last test
(cherry picked from commit bc619bcefc
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
07c6b8b24e
commit
90de95c7b2
3 changed files with 29 additions and 1 deletions
2
changelogs/fragments/3800-pipx-include-apps.yaml
Normal file
2
changelogs/fragments/3800-pipx-include-apps.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- pipx - passes the correct command line option ``--include-apps`` (https://github.com/ansible-collections/community.general/issues/3791).
|
|
@ -167,7 +167,7 @@ class PipX(CmdStateModuleHelper):
|
|||
command_args_formats = dict(
|
||||
state=dict(fmt=lambda v: [_state_map.get(v, v)]),
|
||||
name_source=dict(fmt=lambda n, s: [s] if s else [n], stars=1),
|
||||
install_deps=dict(fmt="--install-deps", style=ArgFormat.BOOLEAN),
|
||||
install_deps=dict(fmt="--include-deps", style=ArgFormat.BOOLEAN),
|
||||
inject_packages=dict(fmt=lambda v: v),
|
||||
force=dict(fmt="--force", style=ArgFormat.BOOLEAN),
|
||||
include_injected=dict(fmt="--include-injected", style=ArgFormat.BOOLEAN),
|
||||
|
|
|
@ -124,3 +124,29 @@
|
|||
- '"ansible-lint" in inject_pkgs_ansible_lint.application'
|
||||
- '"licenses" in inject_pkgs_ansible_lint.application["ansible-lint"]["injected"]'
|
||||
- uninstall_ansible_lint is changed
|
||||
|
||||
##############################################################################
|
||||
- name: install jupyter - not working smoothly in freebsd
|
||||
block:
|
||||
- name: ensure application jupyter is uninstalled
|
||||
community.general.pipx:
|
||||
name: jupyter
|
||||
state: absent
|
||||
|
||||
- name: install application jupyter
|
||||
community.general.pipx:
|
||||
name: jupyter
|
||||
install_deps: true
|
||||
register: install_jupyter
|
||||
|
||||
- name: cleanup jupyter
|
||||
community.general.pipx:
|
||||
state: absent
|
||||
name: jupyter
|
||||
|
||||
- name: check assertions
|
||||
assert:
|
||||
that:
|
||||
- install_jupyter is changed
|
||||
- '"ipython" in install_jupyter.stdout'
|
||||
when: ansible_system != 'FreeBSD'
|
||||
|
|
Loading…
Reference in a new issue