Update .gitignore and refactor Ubuntu template playbook to use role for Proxmox template management
This commit is contained in:
41
ansible/roles/proxmox_template_manage/defaults/main.yml
Normal file
41
ansible/roles/proxmox_template_manage/defaults/main.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
# Defaults for proxmox_template_manage role
|
||||
|
||||
# Target Proxmox Node (where commands run)
|
||||
proxmox_node: "{{ inventory_hostname }}"
|
||||
|
||||
# Storage Pool for Disks
|
||||
storage_pool: local-lvm
|
||||
|
||||
# Template ID and Name
|
||||
template_id: 9000
|
||||
template_name: ubuntu-2204-cloud-template
|
||||
|
||||
# Hardware Specs
|
||||
template_memory: 2048
|
||||
template_cores: 2
|
||||
|
||||
# Image Source
|
||||
# Options: 'list' (use image_alias) or 'url' (use custom_image_url)
|
||||
image_source_type: list
|
||||
|
||||
image_list:
|
||||
ubuntu-22.04:
|
||||
url: "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
|
||||
filename: "ubuntu-22.04-server-cloudimg-amd64.img"
|
||||
ubuntu-24.04:
|
||||
url: "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
|
||||
filename: "ubuntu-24.04-server-cloudimg-amd64.img"
|
||||
debian-12:
|
||||
url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2"
|
||||
filename: "debian-12-generic-amd64.qcow2"
|
||||
|
||||
image_alias: ubuntu-22.04
|
||||
|
||||
custom_image_url: ""
|
||||
custom_image_name: "custom-image.img"
|
||||
|
||||
# Cloud Init / SSH
|
||||
# Optional: Embed a default admin key into the template
|
||||
embed_admin_ssh_key: false
|
||||
admin_ssh_key: ""
|
||||
Reference in New Issue
Block a user