Skip to content
Snippets Groups Projects
Commit 4898dd9e authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Create condarc file before to update conda

On the TN, we can't access repo.anaconda.com.
The channel_alias has to be set before trying to update conda.
parent 570db6d3
No related branches found
No related tags found
No related merge requests found
Pipeline #15345 passed
......@@ -34,6 +34,14 @@
bash /opt/conda/{{ conda_installer }} -p /opt/conda -b -f
when: run_conda_version.rc != 0
- name: create condarc file
template:
src: system_condarc.j2
dest: /opt/conda/.condarc
owner: root
group: root
mode: 0644
- name: delete miniconda installer
file:
path: /opt/conda/{{ conda_installer }}
......@@ -52,11 +60,3 @@
src: /opt/conda/etc/profile.d/conda.sh
dest: /etc/profile.d/conda.sh
state: link
- name: create condarc file
template:
src: system_condarc.j2
dest: /opt/conda/.condarc
owner: root
group: root
mode: 0644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment