darkraiden.ansible-pip

Ansible Role Pip

Build Status

This role installs and sets up Python Pip.

Dependencies

There are no dependencies.

Role Variables

Here are the available variables with their default values (see defaults/main.yml):

pip_command_pip: pip
pip_command_python: python

These are the command names for Pip and Python.

pip_download_filename: get-pip.py
pip_download_url: "https://bootstrap.pypa.io/{{ pip_download_filename }}"
pip_download_dest: /tmp

This includes the name of the Pip file, the download URL, and where to save the file.

pip_version: 10.0.1

This specifies the version of Pip to install.

Example Playbook

Here's an example playbook to use this role:

- hosts: all
  become: True
  roles:
    - darkraiden.ansible-pip

Test Kitchen

Install Dependencies

$ bundle

Virtual Machines

This configuration can use the following Docker images:

  • centos:7
  • ubuntu:trusty
  • ubuntu:xenial
  • debian:jessie
  • debian:stretch
  • fedora:26
  • fedora:25
  • fedora:24

You can test the role with all these containers by running the commands below. To test on a specific system, add the VM name to the command.

For example:

$ bundle exec kitchen converge trusty

This will only affect the trusty container.

Create the Containers

$ bundle exec kitchen create

Apply Your Role

$ bundle exec kitchen converge

Run ServerSpec Tests

$ bundle exec kitchen verify

Remove the Containers

$ bundle exec kitchen destroy

Run Create/Converge/Verify/Destroy in One Command

$ bundle exec kitchen test

Write Your Tests

You can create your own tests by adding a new file or editing the existing ones in the test/integration/pip/serverspec/localhost directory. For more information on writing ServerSpec tests, visit this link.

License

MIT (Expat) / BSD

Author Information

This role was created in 2017 by Davide Di Mauro.

Informazioni sul progetto

Pip Role

Installa
ansible-galaxy install darkraiden.ansible-pip
Licenza
Unknown
Download
7.9k
Proprietario
Father, husband, tech geek and coder. DevOps Engineer at Microsoft