DevOps Classroom notes 29/Jan/2026

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 hosts with 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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%