How to Install and Configure latest version of Ansible on Ubuntu Linux

To install and configure the latest version of Ansible on Ubuntu Linux, follow these steps:

  1. Update the package list:
 
sudo apt-get update
  1. Install the software-properties-common package:
 
sudo apt-get install software-properties-common
  1. Add the Ansible PPA repository:
 
sudo apt-add-repository ppa:ansible/ansible
  1. Update the package list again:
 
sudo apt-get update
  1. Install Ansible:
 
sudo apt-get install ansible
  1. Verify the installation by checking the version:
 
ansible --version
  1. Create an Ansible configuration file:
 
sudo nano /etc/ansible/ansible.cfg
  1. Add the following content to the configuration file:
 
[defaults]
host_key_checking = False
  1. Save and close the file.

Now, Ansible is installed and configured on your Ubuntu Linux system. You can start using it to automate tasks.

Leave a Comment