pip

Ansible Role GitHub tag (latest SemVer) GitHub repo size

Ansible Role: pip

Role to install (by default) python3-pip package or python-pip package (if passed as var) on Debian/Ubuntu and EL systems.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml)

Variables list:

pip_app_package: python3-pip
pip_desired_state: present
pip_upgrade_version: latest

Variables table:

Variable Description
pip_app_package Defined to dynamically provide package name i.e. python3-pip or python-pip
pip_desired_state Defined to dynamically select whether to install (i.e. either present or latest) or uninstall (i.e. absent) the package.
pip_upgrade_version Defined to dynamically select whether to upgrade pip after installation or not.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of python3-pip package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.pip

For customizing behavior of role (i.e. installation of latest python-pip package instead of python3-pip) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.pip
  vars:
    pip_app_package: python-pip

For customizing behavior of role (i.e. un-installation of python3-pip package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.pip
  vars:
    desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad.

About

Role for dynamically installing or uninstalling 'python3-pip' or 'python-pip' package.

Install
ansible-galaxy install darkwizard242/ansible-role-pip
GitHub repository
License
mit
Downloads
5567
Owner
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!