VMware: Add example of specific folder in VM fact gathering (#66613)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/66619/head
Abhijeet Kasurde 5 years ago committed by GitHub
parent 1befb52321
commit b620134f9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -146,6 +146,15 @@ EXAMPLES = r'''
- "{{ vm_info.virtual_machines | json_query(query) }}"
vars:
query: "[?guest_name=='DC0_H0_VM0']"
- name: Gather all VMs from a specific folder
vmware_vm_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
folder: "/Asia-Datacenter1/vm/prod"
delegate_to: localhost
register: vm_info
'''
RETURN = r'''

Loading…
Cancel
Save