DevOps Classroom notes 29/Jan/2026

Lets Setup Ansible with password based

Preview

  • 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

Preview

  • 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 Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube