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