From 2f7544c3a15f3d4f21a2ab3c8d90fdd54f363574 Mon Sep 17 00:00:00 2001
From: Elam Monnot <elam.monnot@ip-192-168-0-21>
Date: Tue, 4 Apr 2023 09:01:02 +0200
Subject: [PATCH] fix: changed order of task in main.yaml

---
 roles/peertube/tasks/main.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/roles/peertube/tasks/main.yml b/roles/peertube/tasks/main.yml
index a27eabe..be76841 100644
--- a/roles/peertube/tasks/main.yml
+++ b/roles/peertube/tasks/main.yml
@@ -5,9 +5,6 @@
   - name: installation de k3s...
     shell: curl -sfL https://get.k3s.io | sh -s - --docker
 
-  - name: exposition du cluster...
-    shell: export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
-
   - name: mise a jour de resolv.conf...
     copy:
       src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf
@@ -37,7 +34,10 @@
     shell: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
 
   - name: installation de peertube...
-    shell: helm repo add postgresql https://charts.bitnami.com/bitnami && helm repo add redis https://charts.bitnami.com/bitnami && helm repo add mail https://bokysan.github.io/docker-postfix 
+    shell: helm repo add postgresql https://charts.bitnami.com/bitnami && helm repo add redis https://charts.bitnami.com/bitnami && helm repo add mail https://bokysan.github.io/docker-postfix
+
+  - name: exposition du cluster...
+    shell: export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
 
   - name: lancement du helm chart peertube...
     shell: helm install --create-namespace -n peertube peertube-gsb /root/tools/peertube/helm