Ansible Role - Pip (for Python)
Go to file
2017-11-14 14:12:37 +00:00
defaults Add name of the system pip package into defaults 2017-11-14 12:28:48 +00:00
meta Initial commit. 2017-05-26 23:09:47 -04:00
tasks Add name of the system pip package into defaults 2017-11-14 12:28:48 +00:00
tests Some additional work on role tests. All blind on an airplane, wheeee. 2017-05-26 23:22:04 -04:00
.gitignore Initial commit. 2017-05-26 23:09:47 -04:00
.travis.yml Documentation tweaks. 2017-05-30 22:59:45 -05:00
LICENSE Initial commit. 2017-05-26 23:09:47 -04:00
README.md Update the readme with the new parameter 2017-11-14 14:12:37 +00:00

Ansible Role: Pip (for Python)

Build Status

An Ansible Role that installs Pip on Linux.

Requirements

On RedHat/CentOS, you may need to have EPEL installed before running this role. You can use the geerlingguy.repo-epel role if you need a simple way to ensure it's installed.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

The name of the packge to install to get pip on the system.

pip_package_name: python-pip

For example:

pip_package_name: python3-pip

A list of packages to install with pip.

pip_install_packages: []

Examples below:

pip_install_packages:
  # Specify names and versions.
  - name: docker
    version: "1.2.3"
  - name: awscli
    version: "1.11.91"

  # Or specify bare packages to get the latest release.
  - docker
  - awscli

  # Or uninstall a package.
  - name: docker
    state: absent

  # Or update a package ot the latest version.
  - name: docker
    state: latest

  # Or force a reinstall.
  - name: docker
    state: forcereinstall

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - geerlingguy.pip

License

MIT / BSD

Author Information

This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.