nixos-base-image/ansible/playbooks/create-template.yml
2025-06-09 00:16:41 +02:00

16 lines
547 B
YAML

- name: Restore and Convert to Template on Proxmox
hosts: proxmox # Target the Proxmox host
become: true # Need root/sudo on Proxmox host for qm commands
vars:
# VM/Template specifics (can be passed via --extra-vars or from group_vars)
vmid_base_template: "{{ template_vmid }}"
vmname_base_template: "{{ template_vm_name }}"
vmid_latest_template: "{{ latest_template_vmid }}"
vmname_latest_template: "{{ latest_template_vm_name }}"
# Configuration for the restored VM
cpu_cores: 2
memory_mb: 2048
tasks: