From dfcfe941cfce45a849d2549ff0d203224f0b299e Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Mon, 11 Sep 2023 01:27:02 +0100 Subject: [PATCH] actually fix order of things --- infra/joplin/0000_proxmox_playbook.yaml | 34 +++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/infra/joplin/0000_proxmox_playbook.yaml b/infra/joplin/0000_proxmox_playbook.yaml index ac4fa50..6b9a11e 100644 --- a/infra/joplin/0000_proxmox_playbook.yaml +++ b/infra/joplin/0000_proxmox_playbook.yaml @@ -45,7 +45,7 @@ delay: 10 until: vm.status is defined - # Networking + # Networking and initial config - name: Add HOME NIC community.general.proxmox_nic: interface: net0 @@ -56,14 +56,7 @@ interface: net1 firewall: false bridge: SRV - - # VM Configuration - - name: Resize disk - community.general.proxmox_disk: - disk: scsi0 - size: 64G - state: resized - - name: Update VM + - name: Configure cloud-init community.general.proxmox_kvm: update: true ciuser: debian @@ -71,13 +64,6 @@ ipconfig: ipconfig0: ip=dhcp,ip6=auto ipconfig1: ip=dhcp - agent: enabled=1 - tags: - - debian-12 - - managed - onboot: true - cores: 2 - memory: 2048 # Initial boot # For some reason debian cloud images don't use @@ -95,6 +81,22 @@ ansible.builtin.wait_for: 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 community.general.proxmox_kvm: state: restarted