Note
This module is part of the community.general collection (version 10.7.3).
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
Parameter | Comments |
|---|---|
executable path | Path to the If not specified, the module will use |
global boolean added in community.general 9.3.0 | The module will pass the The Choices:
|
include_deps boolean | Include dependent packages in the output. Choices:
|
include_injected boolean | Include injected packages in the output. Choices:
|
include_raw boolean | Returns the raw output of The raw output is not affected by Choices:
|
name string | Name of an application installed with |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full This action does not modify state. | Can run in |
diff_mode | Support: N/A This action does not modify state. | Will return details on what has changed (or possibly needs changing in |
Note
pipx version 0.16.2.1 or above. From community.general 11.0.0 onwards, the module will require pipx>=1.7.0.pipx requires Python 3.6 or above.pipx python package, however that can be easily done with the module ansible.builtin.pip.pipx to be in the shell PATH, but it must be loadable by Python as a module.pipx environment variables such as but not limited to PIPX_HOME and PIPX_BIN_DIR passed using the environment Ansible keyword.See also
Manual page for the command.
- 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
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
application list / elements=dictionary | The list of installed applications. Returned: success |
|
dependencies list / elements=string |
The dependencies of the installed application, when Returned: success Sample: |
|
injected dictionary |
The injected packages for the installed application, when Returned: success Sample: |
|
name string |
The name of the installed application. Returned: success Sample: |
|
pinned boolean added in community.general 10.0.0 |
Whether the installed application is pinned or not. When using Returned: success Sample: |
|
version string |
The version of the installed application. Returned: success Sample: |
cmd list / elements=string | Command executed to obtain the list of installed applications. Returned: success Sample: |
raw_output dictionary | The raw output of the Returned: success |
version string added in community.general 10.1.0 | Version of pipx. Returned: always Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/pipx_info_module.html