arillso.system.python role – Python package management with pip
Note
This role is part of the arillso.system collection (version 1.0.5).
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 arillso.system.
To use it in a playbook, specify: arillso.system.python.
Entry point main – Python package management with pip
Synopsis
Manages Python packages via pip
Supports virtualenv and system-wide installation
Parameters
Parameter |
Comments |
|---|---|
Enable debug output for troubleshooting Choices:
|
|
Development packages to install Default: |
|
Install Python system packages Choices:
|
|
List of Python packages to manage Default: |
|
Pip executable to use |
|
Extra arguments for pip |
|
Package name |
|
Package state Choices:
|
|
Package version |
|
Virtualenv path |
|
Command to create virtualenv |
|
Python interpreter for virtualenv |
|
Allow virtualenv access to system site-packages Choices:
|
|
Enable pip package management Choices:
|
|
Default pip executable Default: |
|
Extra arguments passed to pip Default: |
|
List of requirements files to install Default: |
|
Pip executable to use |
|
Extra arguments for pip |
|
Path to requirements file |
|
Desired state Choices:
|
|
Virtualenv path |
|
Command to create virtualenv |
|
Python interpreter for virtualenv |
|
Allow virtualenv access to system site-packages Choices:
|
|
Number of retry attempts for tasks Default: |
|
Delay in seconds between retry attempts Default: |
|
System packages to install for Python Default: |
|
Upgrade pip before installing packages Choices:
|
|
Command to create virtualenvs Default: |
|
Enable virtualenv management Choices:
|
|
Python interpreter for virtualenvs Default: |
|
Allow virtualenv access to system site-packages Choices:
|
Entry point pip – Pip package management entry point
Synopsis
Entry point for managing Python packages
Parameters
Parameter |
Comments |
|---|---|
List of packages to manage |
|
Pip executable to use |
|
Extra arguments for pip |
|
Package name |
|
Package state Choices:
|
|
Package version |
|
Virtualenv path |
|
Command to create virtualenv |
|
Python interpreter for virtualenv |
|
Allow virtualenv access to system site-packages Choices:
|
Entry point requirements – Requirements file entry point
Synopsis
Entry point for installing from requirements.txt
Parameters
Parameter |
Comments |
|---|---|
List of requirements files |
|
Pip executable to use |
|
Extra arguments for pip |
|
Path to requirements file |
|
Desired state Choices:
|
|
Virtualenv path |
|
Command to create virtualenv |
|
Python interpreter for virtualenv |
|
Allow virtualenv access to system site-packages Choices:
|