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
|
@ -62,21 +62,21 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = '''
|
||||
- name: Wait for VMware tools to become available by UUID
|
||||
vmware_guest_facts:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: "/{{datacenter}}/vm"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
name: "{{ vm_name }}"
|
||||
delegate_to: localhost
|
||||
register: vm_facts
|
||||
|
||||
- name: Get UUID from previous task and pass it to this task
|
||||
vmware_guest_tools_wait:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
uuid: "{{ vm_facts.instance.hw_product_uuid }}"
|
||||
delegate_to: localhost
|
||||
|
@ -85,12 +85,12 @@ EXAMPLES = '''
|
|||
|
||||
- name: Wait for VMware tools to become available by name
|
||||
vmware_guest_tools_wait:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
name: test-vm
|
||||
folder: "/{{datacenter}}/vm"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
delegate_to: localhost
|
||||
register: facts
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue