Install and configure Python Pip.
None
Available variables are listed below, along with default values (see defaults/main.yml
):
pip_command_pip: pip
pip_command_python: python
Pip and python command names.
pip_download_filename: get-pip.py
pip_download_url: "https://bootstrap.pypa.io/{{ pip_download_filename }}"
pip_download_dest: /tmp
Pip filename, download url and temp destination.
pip_version: 10.0.1
Desired pip version to be installed.
- hosts: all
become: True
roles:
- darkraiden.ansible-pip
$ bundle
This kitchen configuration comes with the following docker images:
- centos:7
- ubuntu:trusty
- ubuntu:xenial
- debian:jessie
- debian:stretch
- fedora:26
- fedora:25
- fedora:24
If you want to test the role using all of those containers, just run the commands below as they are. If you want to test the role on one system only, append to the commands below the VM name.
e.g.
$ bundle exec kitchen converge trusty
To converge the trusty
container only.
$ bundle exec kitchen create
$ bundle exec kitchen converge
$ bundle exec kitchen verify
$ bundle exec kitchen destroy
$ bundle exec kitchen test
You can write your own test by adding a new file or editing the existing one living in the test/integration/pip/serverspec/localhost
directory. More info about how to write serverspec test can be found here.
MIT (Expat) / BSD
This role was created in 2017 by Davide Di Mauro.