diff --git a/roles/peertube/tasks/main.yml b/roles/peertube/tasks/main.yml index 63d606a..fea1397 100644 --- a/roles/peertube/tasks/main.yml +++ b/roles/peertube/tasks/main.yml @@ -5,8 +5,26 @@ - name: installation de k3s... shell: curl -sfL https://get.k3s.io | sh -s - --docker + - name: création du répertoire du dépot peertube... + file: + path: /root/tools/peertube + state: directory + mode: '0755' + - name: clonage du dépot peertube... git: repo: https://github.com/Elam-Monnot/Peertube-helm.git - dest: /root/tools/ + dest: /root/tools/peertube clone: yes + + - name: copie de values.yaml... + copy: + src: /root/tools/ansible/gsb2023/roles/peertube/files/values.yaml + dest: /root/tools/peertube/Peertube-helm/helm/ + mode: '0644' + + - name: installation de helm... + shell: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + + - name: installation de peertube... + shell: helm build /root/tools/peertube/Peertube-helm/helm && helm install --create-namesapce -n peertube peertube-gsb