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
Rather than getting VM solely by its name, add the ability to get vm_info by a unique identifier. Currently the only way to do this is to get all VMs, store them into a variable and loop through them for a matching unique identifier.
ISSUE TYPE
Add a parameter to get a VM by its moid, uuid or instance_uuid
COMPONENT NAME
community.vmware.vmware_vm_info
ADDITIONAL INFORMATION
- name: Gather one specific VM by moidcommunity.vmware.vmware_vm_info:
hostname: '{{ vcenter_hostname }}'username: '{{ vcenter_username }}'password: '{{ vcenter_password }}'moid: "{{ vm_moid}}"register: vm_info
- name: Gather one specific VM by uuidcommunity.vmware.vmware_vm_info:
hostname: '{{ vcenter_hostname }}'username: '{{ vcenter_username }}'password: '{{ vcenter_password }}'uuid: 422d000d-2000-ffff-0000-b00000000000
- name: Gather one specific VM by instance_uuidcommunity.vmware.vmware_vm_info:
hostname: '{{ vcenter_hostname }}'username: '{{ vcenter_username }}'password: '{{ vcenter_password }}'instance_uuid: '{{ vm_instance_uuid}}'
The text was updated successfully, but these errors were encountered:
SUMMARY
Rather than getting VM solely by its name, add the ability to get vm_info by a unique identifier. Currently the only way to do this is to get all VMs, store them into a variable and loop through them for a matching unique identifier.
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_vm_info
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: