To run an ansible playbook in your localhost, just add the following entry to your inventory file
localhost ansible_host=127.0.0.1 ansible_connection=local
Then, in your playbook, add localhost to the hosts section
hosts: localhost
To run an ansible playbook in your localhost, just add the following entry to your inventory file
Then, in your playbook, add localhost to the hosts section
Recent Comments