From c9bf893582578f55c232c7e1cf429b647ec3f3ba Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 8 Nov 2025 21:20:53 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Create=20Proxmox=20Debian?= =?UTF-8?q?=20template=20with=20QEMU=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a new task to create the QEMU template directory on the Proxmox host, ensuring it exists and has the correct permissions. This change enables the use of the QEMU template for creating Proxmox VMs. --- tasks/create_proxmox_debian_template.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/create_proxmox_debian_template.yml b/tasks/create_proxmox_debian_template.yml index 69e99c5..4a8676e 100644 --- a/tasks/create_proxmox_debian_template.yml +++ b/tasks/create_proxmox_debian_template.yml @@ -34,6 +34,14 @@ state: present update_cache: true + - name: Ensure QEMU template directory exists on Proxmox host + ansible.builtin.file: + path: /var/lib/vz/template/qemu + state: directory + owner: root + group: root + mode: '0755' + - name: Combine SSH public keys into one file ansible.builtin.copy: dest: '{{ ssh_keys_file }}' @@ -220,7 +228,7 @@ - name: Copy finished template back to Proxmox host ansible.posix.synchronize: src: "{{ workdir }}/{{ template_name }}.qcow2" - dest: "/var/lib/vz/template/iso/" + dest: "/var/lib/vz/template/qemu/" mode: pull delegate_to: node0 # rsync_opts: