How to run Ansible playbook on local machine
In order to run an Ansible playbook locally, use
ansible-playbook --connection=local --inventory 127.0.0.1, playbook.yml
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow