From aaf121cd3786e70e4c2a178eab76579f2129220e Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 22:27:04 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20rsync=20comman?= =?UTF-8?q?d=20for=20LXC=20container=20to=20Proxmox=20host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/create_proxmox_debian_template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index 8f6eb69..4cad7ab 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -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