Sys-pip-install Role¶
Description: No description available
Variables¶
author: Kevin Veen-Birkenbach
description: Install or upgrade a Python package system-wide using system pip.
license: Infinito.Nexus NonCommercial License
license_url: https://s.infinito.nexus/license
company: Kevin Veen-Birkenbach
Consulting & Coaching Solutions https://www.veen.world
min_ansible_version: 2.9
platforms: [{‘name’: ‘Linux’, ‘versions’: [‘all’]}]
galaxy_tags: [‘python’, ‘pip’, ‘package’, ‘installation’, ‘automation’]
repository: https://s.infinito.nexus/code
issue_tracker_url: https://s.infinito.nexus/issues
documentation: https://docs.infinito.nexus
README¶
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.