What is Ansible and Why We Need It

mishmish
2 min read

TL;DR - Ansible is how you stop manually configuring servers and start automating everything with YAML.

So... What Even Is Ansible?

Ansible is an open-source IT automation tool developed and constantly maintained by Red Hat that takes boring, repetitive sysadmin tasks and makes them disappear. Seriously. It helps you:

  • Set up new servers (aka provisioning)

  • Keep systems configured the way you want (aka configuration management)

  • Deploy your apps consistently across environments (aka application deployment)

Instead of SSH-ing into 5 servers and running the same command over and over, you just write what you want to happen in a YAML file, and Ansible does the rest.

So…. What Can You Actually Automate with Ansible?

Ansible can handle basically anything in your infrastructure, like:

✅ Setting up new EC2 instances in AWS
✅ Installing and updating apps (like Apache, MySQL, Python, etc.)
✅ Managing firewalls, networks, storage, and databases
✅ Deploying your code to servers (yes, even rolling updates!)
✅ Enforcing security policies or system settings

Why Ansible Over Other Tools?

There are other automation tools out there like Puppet and Chef. So why Ansible?

1. Simplicity.
Ansible uses YAML, not some custom language like Ruby. Even non-devs can understand a playbook after a few minutes.

2. Agentless.
No need to install anything on your target servers (no agents). Just Python and SSH, which are already on most Linux boxes.

3. Easy to learn, hard to forget.
Even if you take a break, coming back to Ansible is chill. You’re not re-learning complex syntax — it’s just describing what you want in plain text.

Why Should You (as a Dev) Care?

Even if you’re not an ops person, Ansible makes your life easier:

  • Want all dev servers to run Python 3.8? Ansible.

  • Need to push version 2.0 of your app to 10 machines? Ansible.

  • Rolling updates without downtime? Ansible.

It’s also great resume ammo if you're getting into DevOps, SRE, or cloud engineering.

If you're tired of doing the same setup commands again and again, or you want to step into automation and DevOps, Ansible is one of the best ways to start. It’s lightweight, beginner-friendly, and powerful enough to handle real-world use cases.

0
Subscribe to my newsletter

Read articles from mish directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

mish
mish