You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the module vmware_guest, using state: absent on the cdrom sub-module does not work. In fact, if there is no cdrom on the VM it does precisely the opposite, it adds one to the VM!
ansible-galaxy collection list community.general
# /usr/lib/python3/dist-packages/ansible_collections
Collection Version
----------------- -------
community.general 6.4.0
ansible-galaxy collection list |grep vmware
community.vmware 3.4.0
vmware.vmware_rest 2.2.0
community.vmware 3.11.1
OS / ENVIRONMENT
Debian 12
Vcenter 7.0.3
STEPS TO REPRODUCE
- name: Remove cdrom/isocommunity.vmware.vmware_guest:
hostname: "{{ vcenter_host }}"username: "{{ vcenter_username }}"password: "{{ vcenter_password }}"datacenter: "{{ vcenter_datacenter }}"validate_certs: falsename: "{{ template_servers.hostname }}"cdrom:
type: isoiso_path: '{{ iso }}'state: "absent"This even adds the cdrom!Using type: none, does not remove it as well. With just cdrom: and state: absent, it fails and asks for type.
EXPECTED RESULTS
To remove the cdrom.
ACTUAL RESULTS
Does not remove the cdrom, it even adds it.
The text was updated successfully, but these errors were encountered:
SUMMARY
On the module vmware_guest, using state: absent on the cdrom sub-module does not work. In fact, if there is no cdrom on the VM it does precisely the opposite, it adds one to the VM!
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
COLLECTION VERSION
OS / ENVIRONMENT
Debian 12
Vcenter 7.0.3
STEPS TO REPRODUCE
EXPECTED RESULTS
To remove the cdrom.
ACTUAL RESULTS
Does not remove the cdrom, it even adds it.
The text was updated successfully, but these errors were encountered: