darkwizard242.pip
Ansible Role: pip
This role installs the python3-pip or python-pip package on Debian/Ubuntu and EL systems (it installs python3-pip by default unless you specify otherwise).
Requirements
None.
Role Variables
The available variables are found in defaults/main.yml
.
List of Variables:
pip_app_package: python3-pip
pip_desired_state: present
pip_upgrade_version: latest
Variables Explained:
Variable | Description |
---|---|
pip_app_package | Used to set the package name (e.g., python3-pip or python-pip). |
pip_desired_state | Determines whether to install (using present or latest ) or remove (using absent ) the package. |
pip_upgrade_version | Decides if pip should be upgraded after installation. |
Dependencies
None.
Example Playbook
To use the default setting (install python3-pip) in your Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.pip
To change the setting to install the latest python-pip instead:
- hosts: servers
roles:
- darkwizard242.pip
vars:
pip_app_package: python-pip
To remove the python3-pip package instead:
- hosts: servers
roles:
- darkwizard242.pip
vars:
pip_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Role for dynamically installing or uninstalling 'python3-pip' or 'python-pip' package.
Installa
ansible-galaxy install darkwizard242.pip
Licenza
mit
Download
6k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!