Finally Starting with Ansible — The Magic of Automation in DevOps
Raees Qazi | DevOps Engineer | Learner | Mentor | Creator
Today, I’m finally starting my journey with Ansible — one of the most powerful tools in the DevOps world.
What is Ansible?
Ansible is a configuration management and automation tool. It helps us automate tasks like server setup, patching, updates, deployments, and configurations.
Let’s imagine a real-world example:
Suppose you have 50 systems that need to be updated.
Each system takes about 2 minutes to update.
So, manually updating all of them will take around 1 hour and 40 minutes — not only time-consuming but also a tiring process.
Now, if we use Ansible, we can update all 50 systems in just 2 minutes — because Ansible performs updates in parallel on all systems at the same time.
That’s the real power of automation!

How Ansible Fits in DevOps
DevOps is not just a set of tools — it’s a mindset and culture.
In DevOps, we focus on automating repetitive tasks to save time, reduce errors, and speed up delivery (time-to-market).
Ansible plays a key role in this automation process.
How Ansible Works
Let’s say we have three machines:
- One Master Node (where Ansible is installed)
- Two Ubuntu Machines (our target nodes)
Now, how do these machines connect with each other?
They communicate using SSH keys:
- The Master node has the private key.
- The Ubuntu machines have the public key.
This secure key-based authentication allows Ansible to connect to the target systems without needing a password every time.
Real Example — Installing Docker on Two Ubuntu Machines
Now, suppose we want to install Docker on both Ubuntu machines at the same time.
We just push one command from the Master machine, and Ansible will send it to both Ubuntu systems simultaneously through SSH.
Within minutes, Docker will be installed on both systems — automatically and efficiently.
That’s the magic (or “jadoo”) of Ansible! ✨
Installing Ansible on the Master Machine
Let’s see how to install Ansible step-by-step on an Ubuntu server (for example, an AWS EC2 instance).
- Launch an instance on AWS (Ubuntu).
- Update and upgrade the system:
sudo apt update sudo apt upgrade
3. Add the official Ansible repository:
sudo add-apt-repository --yes --update ppa:ansible/ansible
4. Install Ansible:
sudo apt install ansible -y
5. Verify installation:
ansible --version
That’s it — Ansible is ready to use! 🎉
Final Thoughts
Ansible makes automation simple, fast, and powerful.
It saves hours of manual work and reduces the chance of errors.
Once you start using Ansible, you’ll realize how much easier system management becomes.
Jadoo is in front of you!
I hope you liked my blog and found it easy to understand. 🚀
🌐 Online References
- LinkedIn: https://www.linkedin.com/in/raees-yaqoob-qazi-ryqs/
- Medium Blog: https://medium.com/@raeesyaqubqazi
- Blogspot: https://brillertechnologies.blogspot.com/
- Facebook Page: https://web.facebook.com/profile.php?id=61553548371216
- YouTube Channel: https://www.youtube.com/@RaeesQ.
- TikTok: https://www.tiktok.com/@mrryqs?_t=ZS-8y7t0fQfJKu&_r=1
Comments
Post a Comment