ansible-role-pip/README.md

69 lines
1.5 KiB
Markdown
Raw Normal View History

2017-05-27 05:09:47 +02:00
# Ansible Role: Pip (for Python)
2017-05-27 06:07:36 +02:00
[![Build Status](https://travis-ci.org/geerlingguy/ansible-role-pip.svg?branch=master)](https://travis-ci.org/geerlingguy/ansible-role-pip)
2017-05-27 05:09:47 +02:00
An Ansible Role that installs [Pip](https://pip.pypa.io) 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.
2017-05-27 05:09:47 +02:00
## 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.
2017-05-27 05:09:47 +02:00
pip_install_packages: []
Examples below:
2017-05-27 05:09:47 +02:00
pip_install_packages:
# Specify names and versions.
2017-05-31 05:59:45 +02:00
- name: docker
version: "1.2.3"
- name: awscli
version: "1.11.91"
# Or specify bare packages to get the latest release.
2017-05-31 05:59:45 +02:00
- 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
2017-05-27 05:09:47 +02:00
## Dependencies
None.
## Example Playbook
- hosts: all
roles:
- geerlingguy.pip
## License
MIT / BSD
## Author Information
This role was created in 2017 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).