WIP: Initial VM provisioning #4

Closed
cyclane wants to merge 38 commits from initial-vm-provisioning into main
1 changed files with 18 additions and 16 deletions
Showing only changes of commit dfcfe941cf - Show all commits

View File

@ -45,7 +45,7 @@
delay: 10 delay: 10
until: vm.status is defined until: vm.status is defined
# Networking # Networking and initial config
- name: Add HOME NIC - name: Add HOME NIC
community.general.proxmox_nic: community.general.proxmox_nic:
interface: net0 interface: net0
@ -56,14 +56,7 @@
interface: net1 interface: net1
firewall: false firewall: false
bridge: SRV bridge: SRV
- name: Configure cloud-init
# VM Configuration
- name: Resize disk
community.general.proxmox_disk:
disk: scsi0
size: 64G
state: resized
- name: Update VM
community.general.proxmox_kvm: community.general.proxmox_kvm:
update: true update: true
ciuser: debian ciuser: debian
@ -71,13 +64,6 @@
ipconfig: ipconfig:
ipconfig0: ip=dhcp,ip6=auto ipconfig0: ip=dhcp,ip6=auto
ipconfig1: ip=dhcp ipconfig1: ip=dhcp
agent: enabled=1
tags:
- debian-12
- managed
onboot: true
cores: 2
memory: 2048
# Initial boot # Initial boot
# For some reason debian cloud images don't use # For some reason debian cloud images don't use
@ -95,6 +81,22 @@
ansible.builtin.wait_for: ansible.builtin.wait_for:
timeout: 180 timeout: 180
# VM Configuration
- name: Resize disk
community.general.proxmox_disk:
disk: scsi0
size: 64G
state: resized
- name: Update VM
community.general.proxmox_kvm:
agent: enabled=1
tags:
- debian-12
- managed
onboot: true
cores: 2
memory: 2048
- name: Retart VM - name: Retart VM
community.general.proxmox_kvm: community.general.proxmox_kvm:
state: restarted state: restarted