mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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'] }}"
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user