Categories
Programming

Trying out Ansible on local mode

So you might be interested running ansible to configure your local machine. In this article, I’m going to show you the minimum steps that need to install Vim  using Ansible on an Ubuntu host machine.

1. Install latest Ansible version from apt

2. Create a folder (let’s call this “ansible”) under home directory

3. Create a file called ‘inventory‘ under the new folder and put following content in the file

4. Create a file called ‘vim.yml‘ under the new folder and put following content in the vim.yml file

5. Open terminal inside the folder and type

-K To ask for password

References:

  • Intro to Playbooks, http://docs.ansible.com/ansible/playbooks_intro.html#intro-to-playbooks
  • Running ansible playbook in localhost, http://ansible.pickle.io/post/86598332429/running-ansible-playbook-in-localhost
0 0 vote
Article Rating

By Sinaru Gunawardena

Sinaru is a software developer at work and a painter in free time. He enjoys writing tech notes on his personal website. He currently lives in Dublin, Ireland.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments