From 7f17e18a2971daf3d751f895765e1a8adb27c85a Mon Sep 17 00:00:00 2001 From: Kyattsukuro Date: Sat, 10 Oct 2026 02:50:26 +0200 Subject: [PATCH] added hooks --- files/hooks/post-upgrade/packages.sh | 4 ++++ tasks/main.yml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 files/hooks/post-upgrade/packages.sh diff --git a/files/hooks/post-upgrade/packages.sh b/files/hooks/post-upgrade/packages.sh new file mode 100644 index 0000000..98612e3 --- /dev/null +++ b/files/hooks/post-upgrade/packages.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# https://deepwiki.com/nextcloud/docker/3.2-hook-system +apt update && apt -y install ffmpeg diff --git a/tasks/main.yml b/tasks/main.yml index c2b9b81..0da12f2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,6 +15,11 @@ path: "{{ path }}/config/" state: directory +- name: copy hooks + copy: + src: "files/hooks" + dest: "{{ path }}/config/" + - name: template compose template: src: compose.yml.j2