ansiiiible
This commit is contained in:
parent
85d0217436
commit
a8aa633c49
12 changed files with 314 additions and 0 deletions
20
ansible/upload-template.yml
Normal file
20
ansible/upload-template.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
- name: Build and Upload NixOS Image, Restore and Convert to Template
|
||||
hosts: proxmox
|
||||
gather_facts: false
|
||||
|
||||
roles:
|
||||
- role: upload
|
||||
|
||||
- name: Restore and Convert to Template on Proxmox
|
||||
hosts: proxmox
|
||||
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_backup_template: "{{ backup_template_vmid }}"
|
||||
vmname_backup_template: "{{ backup_template_vm_name }}"
|
||||
vmid_latest_template: "{{ latest_template_vmid }}"
|
||||
vmname_latest_template: "{{ latest_template_vm_name }}"
|
||||
|
||||
roles:
|
||||
- role: create-template
|
||||
Loading…
Add table
Add a link
Reference in a new issue