summaryrefslogtreecommitdiff
path: root/cloud/vmware
diff options
context:
space:
mode:
authorJames Tanner <tanner.jc@gmail.com>2016-08-01 23:08:30 -0400
committerJames Tanner <tanner.jc@gmail.com>2016-08-01 23:08:30 -0400
commit6cebd509d78ede52ee38dd7fff352735c2eceae6 (patch)
tree2e51bdfd7dc118119ae708b1f921a40842154f7d /cloud/vmware
parentcf61825ae5a70616bd283779c9aec353a66324d3 (diff)
downloadansible-modules-extras-6cebd509d78ede52ee38dd7fff352735c2eceae6.tar.gz
add examples
Diffstat (limited to 'cloud/vmware')
-rw-r--r--cloud/vmware/vmware_guest_state.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/cloud/vmware/vmware_guest_state.py b/cloud/vmware/vmware_guest_state.py
index af79026f..f4964c63 100644
--- a/cloud/vmware/vmware_guest_state.py
+++ b/cloud/vmware/vmware_guest_state.py
@@ -61,6 +61,32 @@ extends_documentation_fragment: vmware.documentation
'''
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: