From 3ba10680599e824ce73ba3474070af9606845f18 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 18 Apr 2018 16:41:10 +0200 Subject: [PATCH] Create a directory that the conda installer fails to create by itself. --- conda/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda/tasks/main.yml b/conda/tasks/main.yml index b1ebb865..43935e42 100644 --- a/conda/tasks/main.yml +++ b/conda/tasks/main.yml @@ -20,7 +20,7 @@ - block: - name: Create a conda environment - shell: export PATH={{ conda_install_prefix }}/bin:{{ ansible_env.PATH }} ; {{ 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 }} environment: PATH: 'PATH={{ conda_install_prefix }}/bin:{{ ansible_env.PATH }}' args: