style 💎: Update synchronize command to use posix module

Updated the synchronize command in the Proxmox template task to use the ansible.posix.synchronize module, which is more compatible with Proxmox's file system. This change ensures that the template can be successfully synchronized on the target host.
This commit is contained in:
2025-11-08 19:24:47 +01:00
parent f3a2e0ad0a
commit 3b512c558b

View File

@@ -213,10 +213,10 @@
# qemu-img resize {{ workdir }}/{{ template_name }}.qcow2 --shrink # qemu-img resize {{ workdir }}/{{ template_name }}.qcow2 --shrink
- name: Copy finished template back to Proxmox host - name: Copy finished template back to Proxmox host
ansible.builtin.synchronize: ansible.posix.synchronize:
src: "{{ workdir }}/{{ template_name }}.qcow2" src: "{{ workdir }}/{{ template_name }}.qcow2"
dest: "/var/lib/vz/template/qcow2/" dest: "/var/lib/vz/template/qcow2/"
mode: pull mode: push
# rsync_opts: # rsync_opts:
# - "--rsync-path='sudo rsync'" # - "--rsync-path='sudo rsync'"