Ansible · zero to on-call
Configure a hundred servers
like one.
Inventories, roles and handlers, with plays that show exactly what changed and why. Learn by fixing real incidents in your browser.
Learning Ansible?
Start from zero, step by step.
Levels in order, each with a hands-on incident to fix in your browser.
Something broken right now?
Paste the error, get the fix.
The cause, the commands to confirm it and the fix, for every common Ansible error.
Everything you need, from the first command to the 3 a.m. incident.
Fix a broken fleet. Right here.
Real incidents, real ansible commands and real error messages. No install, no account.
Project files
What happens when you run ansible-playbook
Select a step to see what it does, or play the whole run.
Start on your machine
Install Ansible
Needs Python 3 on your machine and SSH access to a test host you own.
# 1. Get the course and its playbooks
git clone https://github.com/SandeepKomal/Ansible.git
cd Ansible
# 2. Install Ansible in a virtual environment
python3 -m venv .venv
source .venv/bin/activate
python -m pip install ansible ansible-lint
Your first run
Point the example inventory at your test host, then preview before changing anything.
# 3. Your inventory (do not commit it)
cp inventory/hosts.ini.example inventory/hosts.ini
# 4. Check, preview, run
ansible all -m ansible.builtin.ping
ansible-playbook playbooks/hello.yml --check --diff
ansible-playbook playbooks/hello.yml
Your path
Progress is saved in this browser only. Tick a level when you have done its lab and solved its scenarios.
Quiz
Scenario questions for every level, from the first ping to rolling updates. You see right or wrong at once, with the reasoning, which is where the learning is.
Playbook X-ray
Paste a playbook or a role's task file. Every line is explained, and risky patterns are flagged with what to do instead.
Stuck on an error?
Paste the error Ansible printed, or describe the symptom. Each answer explains why it happens, how to confirm it and how to fix and prevent it, then gives you a safe scenario to break and fix it yourself, so you recognise it next time.
A plain copy of this reference, readable without JavaScript: problems.html.
Cheat sheet
Type your own names once and every command fills in, ready to copy. Try runs a command in the playground, opening the scenario it needs. Lab marks the few that need a real machine.
Fill in your own names
How a play runs
What runs on the control node, what crosses the wire, and what runs on each managed host. Point at a component, or tab to it, to read about it.