conda: Fix a conditional.

This commit is contained in:
Andrea Dell'Amico 2018-01-05 12:52:14 +01:00
parent 835df95a15
commit c6c4584ea9
1 changed files with 1 additions and 2 deletions

View File

@ -34,9 +34,8 @@
args:
creates: '{{ conda_install_prefix }}/envs/{{ item.env_name }}/.{{ item.pkg }}'
with_items: '{{ conda_env_pkgs }}'
when: conda_env_pkgs is defined
become: True
become_user: '{{ conda_user }}'
when: conda_environments is defined
when: conda_env_pkgs is defined
tags: [ 'python', 'conda', 'conda_env' ]