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:
src: "{{ workdir }}/{{ template_name }}.qcow2"
dest: "/var/lib/vz/template/iso/"
mode: push
rsync_opts:
- "--rsync-path='rsync'"
mode: pull
delegate_to: node0
# rsync_opts:
# - "--rsync-path='sudo rsync'"