feat ✨: Create Proxmox Debian template with QEMU directory
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user