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:
@@ -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'"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user