web analytics

Running ansible playbook locally

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

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>