forked from ISTI-ansible-roles/ansible-roles
library/roles/conda/tasks/main.yml: Try to fix the task that installs a conda environment.
This commit is contained in:
parent
e3d5ee5eb9
commit
bc2ac5b7bf
|
@ -20,7 +20,7 @@
|
|||
|
||||
- block:
|
||||
- name: Create a conda environment
|
||||
shell: export PATH={{ conda_install_prefix }}/bin:{{ ansible_env.PATH }} ; mkdir -p {{ conda_user_home }}/.conda/pkgs/ ; chown -R {{ conda_user }} {{ conda_user_home }}/.conda ; {{ conda_install_prefix }}/bin/conda create -y -n {{ item.env_name }} {{ item.env_opts }}
|
||||
shell: export PATH={{ conda_install_prefix }}/bin:{{ ansible_env.PATH }} ; mkdir -p {{ conda_user_home }}/.conda/pkgs/ ; chown -R {{ conda_user }} {{ conda_user_home }}/.conda ; {{ conda_install_prefix }}/bin/conda create -y -n {{ item.env_name }} {{ item.env_opts }} || exit 0
|
||||
environment:
|
||||
PATH: 'PATH={{ conda_install_prefix }}/bin:{{ ansible_env.PATH }}'
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue