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 ***
Comments