From 9fea674cae19ea3923653406599f6119c5419b55 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 17:47:44 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20shell=20comman?= =?UTF-8?q?ds=20to=20use=20template=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/create_proxmox_debian_template.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index f1bead4..6f37aa1 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -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