Fix all VMware examples to use delegate_to (#43426)

Some users have problems using the VMware modules because they use the
vCenter as target, and Ansible uses SSH to connect to the targets.

Eventually we need to update the VMware guide to explain how the modules
work, but the first fix is to update the examples.

(We should backport to v2.6 and v2.5 too)
This commit is contained in:
Dag Wieers 2018-08-01 05:40:57 +02:00 committed by Abhijeet Kasurde
parent e96f90b440
commit e2cac8cc93
56 changed files with 161 additions and 67 deletions

View file

@ -63,6 +63,7 @@ EXAMPLES = '''
password: vc_pass
datastore: datastore1
state: present
delegate_to: localhost
- name: Enter all datastores under cluster into Maintenance Mode
vmware_datastore_maintenancemode:
@ -71,6 +72,7 @@ EXAMPLES = '''
password: vc_pass
cluster_name: DC0_C0
state: present
delegate_to: localhost
- name: Enter all datastores under datastore cluster into Maintenance Mode
vmware_datastore_maintenancemode:
@ -79,6 +81,7 @@ EXAMPLES = '''
password: vc_pass
datastore_cluster: DSC_POD0
state: present
delegate_to: localhost
- name: Exit datastore into Maintenance Mode
vmware_datastore_maintenancemode:
@ -87,6 +90,7 @@ EXAMPLES = '''
password: vc_pass
datastore: datastore1
state: absent
delegate_to: localhost
'''
RETURN = '''