diff options
author | James Tanner <tanner.jc@gmail.com> | 2016-08-01 23:08:30 -0400 |
---|---|---|
committer | James Tanner <tanner.jc@gmail.com> | 2016-08-01 23:08:30 -0400 |
commit | 6cebd509d78ede52ee38dd7fff352735c2eceae6 (patch) | |
tree | 2e51bdfd7dc118119ae708b1f921a40842154f7d /cloud/vmware | |
parent | cf61825ae5a70616bd283779c9aec353a66324d3 (diff) | |
download | ansible-modules-extras-6cebd509d78ede52ee38dd7fff352735c2eceae6.tar.gz |
add examples
Diffstat (limited to 'cloud/vmware')
-rw-r--r-- | cloud/vmware/vmware_guest_state.py | 26 |
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: |