community.general.python_requirements_info – Show python path and assert dependency versions¶
Note
This plugin is part of the community.general collection (version 2.5.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.python_requirements_info
.
Synopsis¶
Get info about available Python requirements on the target host, including listing required libraries and gathering versions.
This module was called
python_requirements_facts
before Ansible 2.9. The usage did not change.
Parameters¶
Examples¶
- name: Show python lib/site paths
community.general.python_requirements_info:
- name: Check for modern boto3 and botocore versions
community.general.python_requirements_info:
dependencies:
- boto3>1.6
- botocore<2
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Will Thames (@willthames)
Ryan Scott Brown (@ryansb)