Ansible role to install python dependencies for various python versions in a Debian based distro.
Available variables are listed below, along with default values:
python_deps_python_version : '' # major python version, options : '' (defaults to python2), '3'
python_deps_extra_libs : []
python_deps_requirements : ['requirements.txt']
- hosts: all
roles:
- {
role: python_deps
python_deps_extra_libs : ['package-foo', 'package-bar']
python_deps_requirements : ['/path/to/requirements.txt', '/path/to/requirements_test.txt']
}
- {
role: python_deps,
python_deps_python_version: "3"
}
Project on Github
Licensed under the MIT License. See the LICENSE file for details.