From cc743bda1604005d40e9e599833bcf4c3ccfb7ad Mon Sep 17 00:00:00 2001 From: "martin.fencl" Date: Tue, 3 Feb 2026 19:29:50 +0100 Subject: [PATCH] edit --- nextcloud/update_collabora.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/nextcloud/update_collabora.yml b/nextcloud/update_collabora.yml index 55d5111..30fcc03 100644 --- a/nextcloud/update_collabora.yml +++ b/nextcloud/update_collabora.yml @@ -1,4 +1,4 @@ -# update_collabora.yml +# nextcloud/update_collabora.yml - name: Update Collabora hosts: pve2_vm @@ -24,9 +24,9 @@ state: directory mode: "0755" - - name: Create local archive of docker-compose directory (controller) + - name: Create local archive of docker-compose directory content (controller) ansible.builtin.archive: - path: "{{ compose_local_dir }}" + path: "{{ compose_local_dir }}/" dest: "/tmp/docker-compose.tar.gz" format: gz delegate_to: localhost @@ -38,15 +38,21 @@ dest: "{{ compose_remote_archive }}" mode: "0644" - - name: Recreate remote compose directory + - name: Remove remote compose path (handles file/dir) ansible.builtin.file: path: "{{ compose_remote_dir }}" state: absent - - name: Extract archive on remote host + - name: Ensure remote compose directory exists + ansible.builtin.file: + path: "{{ compose_remote_dir }}" + state: directory + mode: "0755" + + - name: Extract archive on remote host into compose directory ansible.builtin.unarchive: src: "{{ compose_remote_archive }}" - dest: "{{ compose_remote_base }}" + dest: "{{ compose_remote_dir }}" remote_src: true - name: Pull latest Collabora image