library/roles/python-env: Fix the variables handling

This commit is contained in:
Andrea Dell'Amico 2016-07-06 15:12:15 +02:00
parent 2b8340c81e
commit 08ca088916
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,10 @@ py_env_basic_pkgs:
- python-pip
py_env_dpkg:
-
py_pip_deps:
-
py_env_pip_pkgs:
-

View File

@ -14,7 +14,7 @@
with_items: '{{ py_pip_deps | default([]) }}'
- name: Install a list of pip packages
pip: name={{ item }} virtualenv={{ py_env_env_base_dir }}
with_items: '{{ py_env_pip_pkgs | default ()[] }}'
pip: name={{ item }}
with_items: '{{ py_env_pip_pkgs | default ([]) }}'
tags: [ "python", "py_env" ]