community.general.pipx_info module – Rretrieves information about applications installed with pipx
Note
This module is part of the community.general collection (version 10.7.5).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.pipx_info.
New in community.general 5.6.0
Synopsis
- Retrieve details about Python applications installed in isolated virtualenvs using pipx. 
Parameters
| Parameter | Comments | 
|---|---|
| Path to the  If not specified, the module will use  | |
| The module will pass the  The  Choices: 
 | |
| Include dependent packages in the output. Choices: 
 | |
| Include injected packages in the output. Choices: 
 | |
| Returns the raw output of  The raw output is not affected by  Choices: 
 | |
| Name of an application installed with  | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Support: full This action does not modify state. | Can run in  | |
| Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in  | 
Notes
Note
- This module requires - pipxversion 0.16.2.1 or above. From community.general 11.0.0 onwards, the module will require- pipx>=1.7.0.
- Please note that - pipxrequires Python 3.6 or above.
- This module does not install the - pipxpython package, however that can be easily done with the module ansible.builtin.pip.
- This module does not require - pipxto be in the shell- PATH, but it must be loadable by Python as a module.
- This module will honor - pipxenvironment variables such as but not limited to- PIPX_HOMEand- PIPX_BIN_DIRpassed using the environment Ansible keyword.
See Also
See also
- C(pipx) command manual page
- Manual page for the command. 
Examples
- name: retrieve all installed applications
  community.general.pipx_info: {}
- name: retrieve all installed applications, include dependencies and injected packages
  community.general.pipx_info:
    include_deps: true
    include_injected: true
- name: retrieve application tox
  community.general.pipx_info:
    name: tox
    include_deps: true
- name: retrieve application ansible-lint, include dependencies
  community.general.pipx_info:
    name: ansible-lint
    include_deps: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| The list of installed applications. Returned: success | |
| The dependencies of the installed application, when  Returned: success Sample:  | |
| The injected packages for the installed application, when  Returned: success Sample:  | |
| The name of the installed application. Returned: success Sample:  | |
| Whether the installed application is pinned or not. When using  Returned: success Sample:  | |
| The version of the installed application. Returned: success Sample:  | |
| Command executed to obtain the list of installed applications. Returned: success Sample:  | |
| The raw output of the  Returned: success | |
| Version of pipx. Returned: always Sample:  | 
