style 💎: Update shell commands to use template variables

Updated shell commands in the create_proxmox_debian_template.yml file to use template variables for consistency and reusability. This change allows for easier management of different templates without modifying the underlying command structure.
This commit is contained in:
2025-11-08 17:47:44 +01:00
parent 01331e6c80
commit 9fea674cae

View File

@@ -129,7 +129,7 @@
- name: Get QCOW2 image info
ansible.builtin.shell: qemu-img info {{ workdir }}/linux-vm.qcow2
ansible.builtin.shell: "qemu-img info {{ workdir }}/{{ image_name }}"
register: image_info
- name: Show QCOW2 image details
@@ -157,7 +157,7 @@
- name: Get QCOW2 image info
ansible.builtin.shell: qemu-img info {{ workdir }}/linux-vm.qcow2
ansible.builtin.shell: "qemu-img info {{ workdir }}/{{ image_name }}"
register: image_info
- name: Show QCOW2 image details
@@ -175,7 +175,7 @@
- name: Get QCOW2 image info
ansible.builtin.shell: qemu-img info {{ workdir }}/linux-vm.qcow2
ansible.builtin.shell: "qemu-img info {{ workdir }}/{{ template_name }}.qcow2"
register: image_info
- name: Show QCOW2 image details