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:
@@ -213,10 +213,10 @@
|
||||
# qemu-img resize {{ workdir }}/{{ template_name }}.qcow2 --shrink
|
||||
|
||||
- name: Copy finished template back to Proxmox host
|
||||
ansible.builtin.synchronize:
|
||||
ansible.posix.synchronize:
|
||||
src: "{{ workdir }}/{{ template_name }}.qcow2"
|
||||
dest: "/var/lib/vz/template/qcow2/"
|
||||
mode: pull
|
||||
mode: push
|
||||
# rsync_opts:
|
||||
# - "--rsync-path='sudo rsync'"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user