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