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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue