# ESXi upgrade using ansible playbook

**URL:** <https://forum.ansible.com/t/esxi-upgrade-using-ansible-playbook/5085>\
**Category:** Get Help\
**Tags:** vmware\
**Created:** [April 23, 2024, 9:33am UTC](https://forum.ansible.com/t/esxi-upgrade-using-ansible-playbook/5085 "2024-04-23T09:33:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [April 23, 2024, 12:17pm UTC](https://forum.ansible.com/t/esxi-upgrade-using-ansible-playbook/5085/2 "2024-04-23T12:17:39Z")

</div>

> [@kkrishnasamy01](#):
>
> fatal: [localhost]: FAILED!

This `[localhost]` means that the task is invoked to `localhost` instead of your ESXi. You should specify the target node of this task to your ESXi, by changing `hosts` on your playbook or `delegate_to` on the task.

---

_[View the full topic](https://forum.ansible.com/t/esxi-upgrade-using-ansible-playbook/5085)._
