The vmware_guest_tools_wait module

The final module of this section is another self-explanatory one; it simply waits for VMware tools to become available and then gathers facts on the machine:

- name: Wait for VMware tools to become available by name  vmware_guest_tools_wait:    hostname: "{{ vsphere_host }}"    username: "{{ vsphere_username }}"    password: "{{ vsphere_password }}"    validate_certs: "no"    folder: "/vms"    name: "yet_another_example_vm"  delegate_to: localhost  register: facts

VMware tools is an application that runs inside the VM. Once it starts, it allows VMware to interact with the VM, allowing modules such as vmware_guest_file_operation and vmware_vm_shell to function.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.