diff --git a/conda/tasks/main.yml b/conda/tasks/main.yml index bd6fd18..bb98d6b 100644 --- a/conda/tasks/main.yml +++ b/conda/tasks/main.yml @@ -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' ]