style 💎: Update rsync command for LXC container to Proxmox host
Updated the rsync command to use lxc-attach -n instead of just --rsh. This change ensures that the correct SSH connection is established when copying files from the LXC container to the Proxmox host.
This commit is contained in:
@@ -236,7 +236,7 @@
|
||||
|
||||
- name: Copy file from LXC container to Proxmox host using rsync
|
||||
ansible.builtin.command: >
|
||||
rsync -a --rsh='lxc-attach -n {{ lxc_id }} --' {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/
|
||||
"rsync -a --rsh=lxc-attach -n {{ lxc_id }} -- {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/"
|
||||
delegate_to: node0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user