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: 9.0.1
Desired pip version to be installed.
- hosts: all
become: True
roles:
- ansible-role-pip
$ bundle
This kitchen configuration comes with 3 different VMs:
- centos7
- trusty
- xenial
If you want to test the role using all of those machines, 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
VM only.
$ bundle exec kitchen create
$ bundle exec kitchen converge
$ bundle exec kitchen verify
NB: To run verify
the VM must be converged first.
$ 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.