diff --git a/common/playbooks/notebooks.yaml b/common/playbooks/notebooks.yaml index 5b003a799a24ddac5d3de97bcb21bccfd36a2caf..4c6db4dcea80f4c3c0779cd89d52caf77a41bcc5 100644 --- a/common/playbooks/notebooks.yaml +++ b/common/playbooks/notebooks.yaml @@ -36,7 +36,6 @@ vars: name: "{{ item | basename | splitext | first }}" version: "3.2.1" # app 4.0.2 (2023-11-27) - monitor_version: "0.3.1" shell: |- helm status --namespace {{ name }} {{ name }} if [ $? -ne 0 ]; then @@ -47,6 +46,17 @@ helm upgrade --version {{ version }} -f /tmp/{{ item | basename }} --timeout 2h \ --namespace {{ name }} {{ name }} jupyterhub/jupyterhub fi + environment: + KUBECONFIG: /etc/kubernetes/admin.conf + PATH: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin + when: true + with_fileglob: + - "../deployments/*.yaml" + - name: Deploy/upgrade notebook monitoring instance + vars: + name: "{{ item | basename | splitext | first }}" + monitor_version: "0.3.1" + shell: |- helm status --namespace {{ name }} {{ name }}-monitor if [ $? -ne 0 ]; then helm install --namespace {{ name }} \ @@ -63,7 +73,6 @@ when: true with_fileglob: - "../deployments/*.yaml" - - name: Configure secrets management for the hub vars: name: "{{ item | basename | splitext | first }}"