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