mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
VMware: Update example (#43786)
* Unified examples in all modules * validate_certs is now 'no' instead of 'False' * delegate_to changes Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
4618583f2f
commit
1366a694f9
55 changed files with 516 additions and 529 deletions
|
@ -52,22 +52,21 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = '''
|
||||
- name: Gather facts from standalone ESXi server having datacenter as 'ha-datacenter'
|
||||
vmware_datastore_facts:
|
||||
hostname: 192.168.1.209
|
||||
username: administrator@vsphere.local
|
||||
password: vmware
|
||||
datacenter: ha-datacenter
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datacenter: '{{ datacenter_name }}'
|
||||
validate_certs: no
|
||||
delegate_to: localhost
|
||||
register: facts
|
||||
|
||||
- name: Gather facts from datacenter about specific datastore
|
||||
vmware_datastore_facts:
|
||||
hostname: 192.168.1.209
|
||||
username: administrator@vsphere.local
|
||||
password: vmware
|
||||
datacenter: DC0
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datacenter: '{{ datacenter_name }}'
|
||||
name: datastore1
|
||||
validate_certs: no
|
||||
delegate_to: localhost
|
||||
register: facts
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue