mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +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:
@@ -45,9 +45,9 @@ extends_documentation_fragment: vmware.documentation
|
||||
EXAMPLES = r'''
|
||||
- name: Gather all registered virtual machines
|
||||
vmware_vm_facts:
|
||||
hostname: esxi_or_vcenter_ip_or_hostname
|
||||
username: username
|
||||
password: password
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
delegate_to: localhost
|
||||
register: vmfacts
|
||||
|
||||
@@ -56,9 +56,9 @@ EXAMPLES = r'''
|
||||
|
||||
- name: Gather only registered virtual machine templates
|
||||
vmware_vm_facts:
|
||||
hostname: esxi_or_vcenter_ip_or_hostname
|
||||
username: username
|
||||
password: password
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
vm_type: template
|
||||
delegate_to: localhost
|
||||
register: template_facts
|
||||
@@ -68,9 +68,9 @@ EXAMPLES = r'''
|
||||
|
||||
- name: Gather only registered virtual machines
|
||||
vmware_vm_facts:
|
||||
hostname: esxi_or_vcenter_ip_or_hostname
|
||||
username: username
|
||||
password: password
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
vm_type: vm
|
||||
delegate_to: localhost
|
||||
register: vm_facts
|
||||
|
||||
Reference in New Issue
Block a user