diff --git a/roles/peertube-k3s/README.md b/roles/peertube-k3s/README.md new file mode 100644 index 0000000..e69de29 diff --git a/roles/peertube-k3s/tasks/main.yml b/roles/peertube-k3s/tasks/main.yml new file mode 100644 index 0000000..c1a3190 --- /dev/null +++ b/roles/peertube-k3s/tasks/main.yml @@ -0,0 +1,23 @@ +--- + - name: mise a jour de resolv.conf... + copy: + src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf + dest: /etc/ + mode: '0644' + + - name: installation de docker... + shell: curl https://releases.rancher.com/install-docker/20.10.sh | sh + + - name: attente de l'installation... + wait_for: + timeout: 30 + host: localhost + + - name: installation de k3s... + shell: curl -sfL https://get.k3s.io | sh -s - --docker + + - name: mise a jour de resolv.conf... + copy: + src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf + dest: /etc/ + mode: '0644' diff --git a/roles/peertube/tasks/main.yml b/roles/peertube/tasks/main.yml index c9bde25..821814a 100644 --- a/roles/peertube/tasks/main.yml +++ b/roles/peertube/tasks/main.yml @@ -1,21 +1,4 @@ --- - - name: installation de docker... - shell: curl https://releases.rancher.com/install-docker/20.10.sh | sh - - - name: attente de l'installation... - wait_for: - timeout: 30 - host: localhost - - - name: installation de k3s... - shell: curl -sfL https://get.k3s.io | sh -s - --docker - - - name: mise a jour de resolv.conf... - copy: - src: /root/tools/ansible/gsb2023/roles/peertube/files/resolv.conf - dest: /etc/ - mode: '0644' - - name: création du répertoire du dépot peertube... file: path: /root/tools/peertube diff --git a/s-peertube.yml b/s-peertube.yml index 78a9878..fa3f861 100644 --- a/s-peertube.yml +++ b/s-peertube.yml @@ -7,4 +7,5 @@ - post - snmp-agent - ssh-cli + - peertube-k3s - peertube