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
|
@ -36,19 +36,18 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = '''
|
||||
- name: Gather vmware host facts
|
||||
vmware_host_facts:
|
||||
hostname: esxi_ip_or_hostname
|
||||
username: username
|
||||
password: password
|
||||
hostname: "{{ esxi_server }}"
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ esxi_password }}"
|
||||
register: host_facts
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Get VSAN Cluster UUID from host facts
|
||||
vmware_host_facts:
|
||||
hostname: esxi_ip_or_hostname
|
||||
username: username
|
||||
password: password
|
||||
hostname: "{{ esxi_server }}"
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ esxi_password }}"
|
||||
register: host_facts
|
||||
|
||||
- set_fact:
|
||||
cluster_uuid: "{{ host_facts['ansible_facts']['vsan_cluster_uuid'] }}"
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue