library/roles/python-virtualenv: First bits of a python virtualenv role.

This commit is contained in:
Andrea Dell'Amico 2015-10-02 11:45:05 +02:00
parent 3b38499d22
commit 3411e2b110
4 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
---
py_virtenv_install: True
py_virtenv_pkgs_state: installed
py_virtenv_pkgs:
- python-pip
- python-virtualenv
py_virtenv_pip_pkgs:
py_virtenv_env_path:
- /tmp

View File

View File

@ -0,0 +1,5 @@
---
- name: Install the python virtualenv packages
apt: name={{ item }} state={{ py_virtenv_pkgs_state }}
with_items: py_virtenv_pkgs
tags: [ "python", "py_virtenv" ]

View File