top of page
Writer's picturevP

Install Ansible on Linux

To begin using Ansible to manage your server infrastructure, you would need to first install the Ansible software on the server that will serve as the Ansible control node.


In this post, we will see how to install Ansible on a Linux machine. I'm using Ubuntu VM for a demo purpose.


1. Run the following command to include the official project’s PPA (personal package archive) in your system’s list of sources.

2. Now refresh your system’s package index so that it is aware of the packages available in the newly included PPA


3. Now, run the below command to install the Ansible


Your Ansible control node now has all of the software required to administer your servers. You can check the ansible version with the below command


Now that you have successfully installed Ansible on the server, next step would be to add your hosts to the control node’s inventory file so that it can control them. I'll cover this topic of setting up the inventory file in another blog post.


With this let's wrap up the post here.


Thank you for reading!


*** Explore | Share | Grow ***

19 views0 comments

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page