From 4898dd9eebbf995d6ff46969dd09177582ee3ece Mon Sep 17 00:00:00 2001
From: Benjamin Bertrand <benjamin.bertrand@esss.se>
Date: Tue, 23 Apr 2019 16:10:04 +0200
Subject: [PATCH] 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.
---
 tasks/install.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tasks/install.yml b/tasks/install.yml
index 93f6350..eb8f258 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -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
-- 
GitLab