New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware_guest : remove_vm does not remove associated resources #37337
Comments
Files identified in the description: If these files are inaccurate, please update the |
@Poil Thanks for reporting this issue. Could you please elaborate more on which file are not removed after absent is called ? In my local environment, I able to remove every file associated with given VM. needs_info |
Hi, Here it does not remove the VMDK files and other attached files, like if ansible only does a remove from inventory and not a delete from disk action. We have a VCenter 5.5. Best regards |
It seems we have no more problem with Ansible 2.5 |
HI @Poil, |
ISSUE TYPE
COMPONENT NAME
vmware_guest
ANSIBLE VERSION
2.4
SUMMARY
Calling state: absent does not remove associated files (vmdk ...)
It seems that ansible call vm.Destroy but it should call vm.Destroy_Task (ref. : https://www.vmware.com/support/developer/converter-sdk/conv55_apireference/vim.ManagedEntity.html#destroy , example : https://code.vmware.com/samples/563/destroy-vm?h=vSphere%20Management#)
The text was updated successfully, but these errors were encountered: