fix(cleanup): force-stop the vmware VM before booting the installed OS

This commit is contained in:
2026-07-14 06:48:25 +02:00
parent 6240217318
commit ad25bec9fd

View File

@@ -8,6 +8,11 @@
vmware.vmware.vm_powerstate: "{{ _vmware_auth }}"
no_log: true
block:
- name: Ensure the installer environment is powered off
vmware.vmware.vm_powerstate:
name: "{{ hostname }}"
state: powered-off
- name: Remove CD-ROM from VM in vCenter
community.vmware.vmware_guest:
name: "{{ hostname }}"
@@ -41,7 +46,7 @@
}}
failed_when: false
- name: Start VM in vCenter
- name: Boot the installed OS
vmware.vmware.vm_powerstate:
name: "{{ hostname }}"
state: powered-on