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:
- Update the package list:
sudo apt-get update- Install the software-properties-common package:
sudo apt-get install software-properties-common- Add the Ansible PPA repository:
sudo apt-add-repository ppa:ansible/ansible- Update the package list again:
sudo apt-get update- Install Ansible:
sudo apt-get install ansible- Verify the installation by checking the version:
ansible --version- Create an Ansible configuration file:
sudo nano /etc/ansible/ansible.cfg- Add the following content to the configuration file:
host_key_checking = False- Save and close the file.
Now, Ansible is installed and configured on your Ubuntu Linux system. You can start using it to automate tasks.
