Lets Setup Ansible with password based

- For this lets use ubuntu 24.04 distribution
- Create a node for ansible installation (acn)
- ensure python is installed
python3 --version
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible -y
ansible --version
- Now create a inventory
- create a file called
hostswith entry of ip address of node1
echo 98.70.49.154 > hosts
- Now lets run a simple adhoc command to check the connectivity i.e. to check if ansible and node are conifured correctly
ansible -i hosts -m ping all --ask-pass

- Create a node (node-1)
- ensure python is installed
-
Exercise:
- Try with two redhat systems
