Recently I’ve been using Ansible to push out updates to vSphere environments that have a lot of hosts, but no working installation of VMWare Update Manager available. During the creation of the below playbook, I found a few interesting caveats to using Ansible to manage your ESXI hosts and vCenter. To resolve this, I’ve created a playbook that does the following:
- Puts targeted hosts in mainteance mode and evacuates VM’s
- Copies VIB to the host
- Checks for existing installation of VIB, Uninstall if found
- Installs VIB
- Takes host out of maintenance mode.