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!
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!
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
Thank you!