Compare commits

...

2 Commits

Author SHA1 Message Date
01331e6c80 style 💎: Update rsync options for proxmox template sync
Updated the rsync options to use 'push' instead of 'pull', ensuring proper synchronization of the template with Proxmox. This change improves the consistency and reliability of the template deployment process.
2025-11-08 17:39:40 +01:00
a69fdb50b0 style 💎: Simplify compressed image replacement
Updated the compressed image replacement step to remove unnecessary comments and shell commands. This change improves code readability and maintainability.
2025-11-08 17:36:49 +01:00

View File

@@ -203,9 +203,9 @@
# {{ image_info.stdout }}
- name: Replace original compressed image with sparsified version
ansible.builtin.shell: |
mv {{ workdir }}/{{ template_name }}_sparse.qcow2 {{ workdir }}/{{ template_name }}.qcow2
# - name: Replace original compressed image with sparsified version
# ansible.builtin.shell: |
# mv {{ workdir }}/{{ template_name }}_sparse.qcow2 {{ workdir }}/{{ template_name }}.qcow2
# - name: Compress and shrink image
# ansible.builtin.shell: |
@@ -216,7 +216,7 @@
ansible.builtin.synchronize:
src: "{{ workdir }}/{{ template_name }}.qcow2"
dest: "/var/lib/vz/template/qcow2/"
mode: pull
mode: push
rsync_opts:
- "--rsync-path='sudo rsync'"