library/roles/python-env/tasks/main.yml: Fix the empty variables case.

This commit is contained in:
Andrea Dell'Amico 2016-10-11 19:36:14 +02:00
parent b35ff2b5b2
commit d0c2241e62
1 changed files with 4 additions and 4 deletions

View File

@ -3,18 +3,18 @@
- name: Install python pip - name: Install python pip
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600 apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
with_items: '{{ py_env_basic_pkgs | default(omit) }}' with_items: '{{ py_env_basic_pkgs | default([]) }}'
- name: Install python deb packages - name: Install python deb packages
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600 apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
with_items: '{{ py_env_dpkg | default(omit) }}' with_items: '{{ py_env_dpkg | default([]) }}'
- name: Install deb packages needed to compile the pip modules - name: Install deb packages needed to compile the pip modules
apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600 apt: name={{ item }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
with_items: '{{ py_pip_deps | default(omit) }}' with_items: '{{ py_pip_deps | default([]) }}'
- name: Install a list of pip packages - name: Install a list of pip packages
pip: name={{ item }} pip: name={{ item }}
with_items: '{{ py_env_pip_pkgs | default (omit) }}' with_items: '{{ py_env_pip_pkgs | default ([]) }}'
tags: [ "python", "py_env" ] tags: [ "python", "py_env" ]