Skip to content

Temelio/ansible-role-pip

Repository files navigation

pip

Build Status Build Status Updates Python 3 Ansible Role

Install pip package.

Requirements

This role requires Ansible 2.2 or higher, and platform requirements are listed in the metadata file.

Testing

This role use Molecule to run tests.

Local and Travis tests run tests on Docker by default. See molecule documentation to use other backend.

Currently, tests are done on:

  • Debian Jessie
  • Ubuntu Trusty
  • Ubuntu Xenial

and use:

  • Ansible 2.2.x
  • Ansible 2.3.x
  • Ansible 2.4.x

Running tests

Using Docker driver

$ tox

Role Variables

Default role variables

# General variables
pip_packages: "{{ _pip_packages }}"


# Specific Debian family vars
pip_repository_update_cache: True
pip_repository_cache_valid_time: 3600

Dependencies

None

Example Playbook

- hosts: servers
  roles:
    - { role: Temelio.pip }

License

MIT

Author Information

Alexandre Chaussier (for Temelio company)