aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-07-01 11:02:16 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-07-01 11:05:18 +0200
commit7145dc982cc0e0fff4afa91d7e3970ad1abddf3f (patch)
tree43be7a70bbc6461b924d5a60b104889cbec5de93
parentebc08d2c321e8b9e34fdb728151ff235757e9e18 (diff)
downloadrules-7145dc982cc0e0fff4afa91d7e3970ad1abddf3f.tar.gz
feat(roles/nextcloud): copy exiftool and ffmpeg/ffmprobe
-rw-r--r--roles/nextcloud/defaults/main.yml2
-rw-r--r--roles/nextcloud/tasks/main.yml18
2 files changed, 20 insertions, 0 deletions
diff --git a/roles/nextcloud/defaults/main.yml b/roles/nextcloud/defaults/main.yml
index a90917a..c8af0ef 100644
--- a/roles/nextcloud/defaults/main.yml
+++ b/roles/nextcloud/defaults/main.yml
@@ -4,6 +4,8 @@ nextcloud__package_name: nextcloud-28.0.3
nextcloud__package_dependencies:
- php-pgsql-8.2.20
- php-pdo_pgsql-8.2.20
+ - ffmpeg
+ - p5-Image-ExifTool
nextcloud__db_name: nextcloud
nextcloud__db_user: nextcloud
diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml
index 9f84fdf..9fd0687 100644
--- a/roles/nextcloud/tasks/main.yml
+++ b/roles/nextcloud/tasks/main.yml
@@ -82,3 +82,21 @@
owner: 0
group: 0
mode: "0644"
+
+- name: copy dependencies binaries to chroot
+ ansible.builtin.include_role:
+ name: copy_bin
+ vars:
+ copy_bin__root_dir: "{{ httpd_pre__chroot_dir }}"
+ copy_bin__name: "{{ item }}"
+ loop:
+ - ffmpeg
+ - ffprobe
+ - perl
+
+- name: copy dependencies for lowdown
+ ansible.builtin.copy:
+ src: /usr/local/bin/exiftool
+ dest: "{{ httpd_pre__chroot_dir }}/bin/exiftool"
+ mode: preserve
+ remote_src: true
remember that computers suck.