forked from ISTI-ansible-roles/ansible-roles
library/roles/python-env: Fix the variables handling
This commit is contained in:
parent
2b8340c81e
commit
08ca088916
|
@ -5,7 +5,10 @@ py_env_basic_pkgs:
|
||||||
- python-pip
|
- python-pip
|
||||||
|
|
||||||
py_env_dpkg:
|
py_env_dpkg:
|
||||||
|
-
|
||||||
|
|
||||||
py_pip_deps:
|
py_pip_deps:
|
||||||
|
-
|
||||||
|
|
||||||
py_env_pip_pkgs:
|
py_env_pip_pkgs:
|
||||||
|
-
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
with_items: '{{ py_pip_deps | default([]) }}'
|
with_items: '{{ py_pip_deps | default([]) }}'
|
||||||
|
|
||||||
- name: Install a list of pip packages
|
- name: Install a list of pip packages
|
||||||
pip: name={{ item }} virtualenv={{ py_env_env_base_dir }}
|
pip: name={{ item }}
|
||||||
with_items: '{{ py_env_pip_pkgs | default ()[] }}'
|
with_items: '{{ py_env_pip_pkgs | default ([]) }}'
|
||||||
|
|
||||||
tags: [ "python", "py_env" ]
|
tags: [ "python", "py_env" ]
|
||||||
|
|
Loading…
Reference in New Issue