From 94f0331087ce4ee1811974b6a342eed101aea791 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jarom=C3=ADr=20Hradil?= <jaromir.hradil@cesnet.cz>
Date: Wed, 7 May 2025 08:11:51 +0200
Subject: [PATCH] Fixing helm repo update logic

---
 common/playbooks/notebooks.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common/playbooks/notebooks.yaml b/common/playbooks/notebooks.yaml
index f8384b6..5a508d4 100644
--- a/common/playbooks/notebooks.yaml
+++ b/common/playbooks/notebooks.yaml
@@ -7,10 +7,13 @@
       shell: |-
         helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
         helm repo add eginotebooks https://egi-federation.github.io/egi-notebooks-chart/
-        helm repo update
       changed_when: true
       when: "'jupyterhub' not in ansible_local.helm_repos | map(attribute='name') | list or
             'eginotebooks' not in ansible_local.helm_repos | map(attribute='name') | list"
+    - name: Get latest helm charts
+      shell: |-
+        helm repo update
+      changed_when: true
     - name: Get Secrets from Vault for notebooks
       vars:
         name: "{{ item | basename | splitext | first }}"
-- 
GitLab