style 💎: Update file copy commands in Proxmox Debian template

Updated the commands for copying files from the LXC container to the host, ensuring consistency and accuracy in the template. The changes also improve readability and maintainability of the template.
This commit is contained in:
2025-11-08 23:23:58 +01:00
parent ce7291bf3c
commit a64aa8d848

View File

@@ -251,10 +251,10 @@
- block:
- name: Copy file from LXC container to host using pct exec
command: pct exec "{{ lxc_id }}" -- cp {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/
command: pct exec "{{ lxc_id }}" -- cp {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/{{ template_name }}.qcow2
- name: Copy file from LXC container to host using rsync
command: pct exec "{{ lxc_id }}" -- rsync -av {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/
command: pct exec "{{ lxc_id }}" -- rsync -av {{ workdir }}/{{ template_name }}.qcow2 /var/lib/vz/template/qemu/{{ template_name }}.qcow2
# - name: Mount the LXC container filesystem
# command: "pct mount {{ lxc_id }}"