VMware: update vmware_guest_tools_wait examples (#41246)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/41281/head
Abhijeet Kasurde 7 years ago committed by ansibot
parent 4ca23cb147
commit d2a1b75913

@ -61,23 +61,35 @@ extends_documentation_fragment: vmware.documentation
EXAMPLES = ''' EXAMPLES = '''
- name: Wait for VMware tools to become available by UUID - name: Wait for VMware tools to become available by UUID
vmware_guest_facts:
hostname: "{{ vcenter_server }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
validate_certs: no
datacenter: "{{ datacenter }}"
folder: "/{{datacenter}}/vm"
name: "{{ vm_name }}"
register: vm_facts
- name: Get UUID from previous task and pass it to this task
vmware_guest_tools_wait: vmware_guest_tools_wait:
hostname: 192.168.1.209 hostname: "{{ vcenter_server }}"
username: administrator@vsphere.local username: "{{ vcenter_user }}"
password: vmware password: "{{ vcenter_pass }}"
validate_certs: no validate_certs: no
uuid: 421e4592-c069-924d-ce20-7e7533fab926 uuid: "{{ vm_facts.instance.hw_product_uuid }}"
delegate_to: localhost delegate_to: localhost
register: facts register: facts
- name: Wait for VMware tools to become available by name - name: Wait for VMware tools to become available by name
vmware_guest_tools_wait: vmware_guest_tools_wait:
hostname: 192.168.1.209 hostname: "{{ vcenter_server }}"
username: administrator@vsphere.local username: "{{ vcenter_user }}"
password: vmware password: "{{ vcenter_pass }}"
validate_certs: no validate_certs: no
name: test-vm name: test-vm
folder: /datacenter1/vm folder: "/{{datacenter}}/vm"
delegate_to: localhost delegate_to: localhost
register: facts register: facts
''' '''

Loading…
Cancel
Save