style 💎: Update rsync mode and delegate to node0

Changed the rsync mode from push to pull, and added a delegate_to parameter to specify the target node for the rsync operation.
This commit is contained in:
2025-11-08 21:18:30 +01:00
parent 2ccfc0feb2
commit b391cd6df9

View File

@@ -221,9 +221,8 @@
ansible.posix.synchronize: ansible.posix.synchronize:
src: "{{ workdir }}/{{ template_name }}.qcow2" src: "{{ workdir }}/{{ template_name }}.qcow2"
dest: "/var/lib/vz/template/iso/" dest: "/var/lib/vz/template/iso/"
mode: push mode: pull
rsync_opts: delegate_to: node0
- "--rsync-path='rsync'"
# rsync_opts: # rsync_opts:
# - "--rsync-path='sudo rsync'" # - "--rsync-path='sudo rsync'"