ansiblebit / pip

Ansible role to install pip.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip

License Build Status

Platform

Project Stats

Ansible role to install pip.

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Debian Wheezy x86_64
Debian Ubuntu Precise x86 x86_64
Debian Ubuntu Trusty x86 x86_64
Debian Ubuntu Xenial x86
RedHat CentOS 6.6 x86_64
RedHat Centos 7 x86_64

Requirements

  • ansible >= 1.9.4

Role Variables

  • debug: flag to run debug tasks.
  • pip_dir_source: the directory where the installer should be downloaded.
  • pip_version: the version to be installed.

Unless stated otherwise a default value is provided for each of the variables mentioned above in defaults/main.yml.

Dependencies

None.

Playbooks

Example:

- hosts: servers
  vars:
    debug: yes

  roles:
     - role: pip
       tags: [ pip ]

Tags

  • configuration: configuration tasks.
  • debug: task to debug role variables.
  • installation: installation tasks.
  • validation: task to validate role variables.

Test

To run the tests you will need to install:

To run all tests against all pre-defined OS/distributions * ansible versions:

$ tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log

To perform debugging on a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev

# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev

Links

Author Information

About

Ansible role to install pip.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 70.8%Language:Ruby 17.5%Language:Python 11.7%