From 8f9cfe3b2fdc9cb716d500c0cc6e38598aa3e378 Mon Sep 17 00:00:00 2001 From: Sandwich Date: Fri, 29 May 2026 22:40:02 +0200 Subject: [PATCH] fix(cleanup): force-stop then start the proxmox VM after install --- roles/cleanup/tasks/proxmox.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/cleanup/tasks/proxmox.yml b/roles/cleanup/tasks/proxmox.yml index 9a8a3b3..cdd0c78 100644 --- a/roles/cleanup/tasks/proxmox.yml +++ b/roles/cleanup/tasks/proxmox.yml @@ -21,8 +21,15 @@ failed_when: false no_log: true - - name: Start the VM + - name: Ensure the installer environment is powered off community.proxmox.proxmox_kvm: vmid: "{{ system_cfg.id }}" - state: restarted + state: stopped + force: true + no_log: true + + - name: Boot the installed OS + community.proxmox.proxmox_kvm: + vmid: "{{ system_cfg.id }}" + state: started no_log: true