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

python_install_packages

boolean

Install Python system packages

Choices:

  • false

  • true ← (default)

python_packages

list / elements=dictionary

List of Python packages to manage

Default: []

name

string / required

Package name

state

string

Package state

Choices:

  • "present" ← (default)

  • "latest"

  • "absent"

version

string

Package version

virtualenv

string

Virtualenv path

python_pip_enabled

boolean

Enable pip package management

Choices:

  • false

  • true ← (default)

Entry point pip – Pip package management entry point

Synopsis

  • Entry point for managing Python packages

Parameters

Parameter

Comments

python_packages

list / elements=dictionary / required

List of packages to manage

Entry point requirements – Requirements file entry point

Synopsis

  • Entry point for installing from requirements.txt

Parameters

Parameter

Comments

python_requirements_files

list / elements=dictionary / required

List of requirements files