From 90caec2fda767bfeeb9c7f133937a4ef877ccdd1 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sat, 21 Dec 2024 23:30:30 +0500 Subject: [PATCH] Update peertube to v7.0.0 I also added image preloading to reduce downtime. --- roles/peertube/tasks/main.yml | 7 ++++++- roles/peertube/vars/main.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 roles/peertube/vars/main.yml diff --git a/roles/peertube/tasks/main.yml b/roles/peertube/tasks/main.yml index 9c8f59b..bac08aa 100644 --- a/roles/peertube/tasks/main.yml +++ b/roles/peertube/tasks/main.yml @@ -39,11 +39,16 @@ become: true community.docker.docker_volume: name: peertube-data +- name: Pull peertube image + become: true + community.docker.docker_image: + name: "{{ image }}" + source: pull - name: Run peertube container become: true community.docker.docker_container: name: peertube - image: chocobozzz/peertube:v6.3.2-bookworm + image: "{{ image }}" networks: - name: peertube - name: haproxy diff --git a/roles/peertube/vars/main.yml b/roles/peertube/vars/main.yml new file mode 100644 index 0000000..9720626 --- /dev/null +++ b/roles/peertube/vars/main.yml @@ -0,0 +1 @@ +image: chocobozzz/peertube:v7.0.0-bookworm