# Ansible vmware playbooks

**URL:** <https://forum.ansible.com/t/ansible-vmware-playbooks/36888>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [July 22, 2022, 5:41pm UTC](https://forum.ansible.com/t/ansible-vmware-playbooks/36888 "2022-07-22T17:41:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheReal\_MVP](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TheReal\_MVP](https://forum.ansible.com/u/TheReal_MVP)\
**Post date:** [July 22, 2022, 5:41pm UTC](https://forum.ansible.com/t/ansible-vmware-playbooks/36888/1 "2022-07-22T17:41:49Z")

</div>

Hi there,

In a playbook, what is the different between host all and host localhost?

I have a playbook that simply won’t perform the tasks and i suspect this setting might be what’s wrong.

Thanks!

---

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [August 1, 2022, 12:47pm UTC](https://forum.ansible.com/t/ansible-vmware-playbooks/36888/2 "2022-08-01T12:47:20Z")

</div>

This will run the tasks on the ‘control node’ (where you run ansible itself):  
hosts: localhost

This will run the tasks on the hosts in the inventory.  
hosts: all

---

<div class="post-metadata">

**Author:** ![TheReal\_MVP](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TheReal\_MVP](https://forum.ansible.com/u/TheReal_MVP)\
**Post date:** [August 23, 2022, 2:37pm UTC](https://forum.ansible.com/t/ansible-vmware-playbooks/36888/3 "2022-08-23T14:37:57Z")

</div>

Thank you! 🙂
