3
0
forked from jakub/ansible
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 - name: Update Collabora
hosts: pve2_vm hosts: pve2_vm
@@ -24,9 +24,9 @@
state: directory state: directory
mode: "0755" mode: "0755"
- name: Create local archive of docker-compose directory (controller) - name: Create local archive of docker-compose directory content (controller)
ansible.builtin.archive: ansible.builtin.archive:
path: "{{ compose_local_dir }}" path: "{{ compose_local_dir }}/"
dest: "/tmp/docker-compose.tar.gz" dest: "/tmp/docker-compose.tar.gz"
format: gz format: gz
delegate_to: localhost delegate_to: localhost
@@ -38,15 +38,21 @@
dest: "{{ compose_remote_archive }}" dest: "{{ compose_remote_archive }}"
mode: "0644" mode: "0644"
- name: Recreate remote compose directory - name: Remove remote compose path (handles file/dir)
ansible.builtin.file: ansible.builtin.file:
path: "{{ compose_remote_dir }}" path: "{{ compose_remote_dir }}"
state: absent 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: ansible.builtin.unarchive:
src: "{{ compose_remote_archive }}" src: "{{ compose_remote_archive }}"
dest: "{{ compose_remote_base }}" dest: "{{ compose_remote_dir }}"
remote_src: true remote_src: true
- name: Pull latest Collabora image - name: Pull latest Collabora image