Ansible vmware playbooks

25 views
Skip to first unread message

TheReal MVP

unread,
Jul 22, 2022, 1:42:14 PM7/22/22
to ansible...@googlegroups.com
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! 

Walter Rowe

unread,
Aug 1, 2022, 8:47:20 AM8/1/22
to Ansible Project
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

--
Walter Rowe, Chief
Infrastructure Services
Office of Information Systems Management
National Institute of Standards and Technology
United States Department of Commerce

TheReal MVP

unread,
Aug 23, 2022, 10:37:57 AM8/23/22
to Ansible Project
Thank you! :)
Reply all
Reply to author
Forward
0 new messages