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:
2025-11-08 22:27:04 +01:00
parent 18926c0047
commit aaf121cd37

View File

@@ -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