1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

add examples

This commit is contained in:
James Tanner 2016-08-01 23:08:30 -04:00 committed by Matt Clay
parent 222f9bc08a
commit 7b65afa83e

View file

@ -61,6 +61,32 @@ extends_documentation_fragment: vmware.documentation
''' '''
EXAMPLES = ''' EXAMPLES = '''
Examples from an ansible playbook ...
- name: poweroff the VM
vmware_guest_state:
validate_certs: False
hostname: 192.168.1.209
username: administrator@vsphere.local
password: vmware
guest: testvm_2
vm_folder: testvms
state: powered_off
ignore_errors: True
- name: remove the VM
vmware_guest_state:
validate_certs: False
hostname: 192.168.1.209
username: administrator@vsphere.local
password: vmware
guest: testvm_2
vm_folder: testvms
state: absent
ignore_errors: True
'''
RETURN = '''
state=absent
''' '''
try: try: