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: