sys-pip-install¶
Description¶
This role installs or upgrades a Python package system-wide using the system pip (python3 -m pip).
It is intended for CLI tools that should be available globally (e.g., maintenance utilities).
This role depends on
sys-pip, which ensures thatpipis installed on the target system.
Overview¶
Ensures the system
pipis available (viasys-pip).Installs or upgrades a package specified by
package_name.Designed for non-interactive automation (CI/maintenance hosts).
Variables¶
Required¶
package_name(string)
Name of the Python package to install (e.g.,dockreap,backup-docker-to-local).
Notes / Caveats¶
The role uses
--break-system-packages(andPIP_BREAK_SYSTEM_PACKAGES=1) to allow installing into the system Python on distributions that enforce externally-managed environments.Use with care: installing Python packages system-wide can conflict with OS package management. For isolated installs of CLI tools, consider
pipxinstead.