This commit is contained in:
martin.fencl
2026-02-03 19:29:50 +01:00
parent e2390fe2e9
commit cc743bda16

View File

@@ -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