13 lessons · quiz

Ansible

You've got 40 servers and every one of them needs the same package installed, the same config file dropped in, the same service restarted. Ansible is a way to describe that once, in plain YAML, and have it happen everywhere — over plain SSH, with nothing to install on the target machines. No agents, no daemons, no "wait, is the agent even running" 3am mystery.

0 / 13 lessons — 0%
Start course →
How this course works: same format as Docker and Kubernetes — short lessons, real YAML you can copy and run, a "Try it yourself" box in most of them. Ansible rewards typing it out yourself more than most tools; the syntax sticks fast once your fingers have done it once.
01

Why Ansible? Agentless config management

What problem it solves, and why nothing needs to be installed on the machines it manages.

02

Installing Ansible & the inventory

Getting set up, and telling Ansible which machines exist and how they're grouped.

03

Ad-hoc commands

Running a single command or module across a fleet, no playbook required.

04

Playbooks & YAML basics

Structuring plays and tasks, and the handful of YAML rules Ansible actually cares about.

05

Variables & facts

Where values come from — inventory, files, the command line, and the target host itself.

06

Jinja2 templates

Generating real config files from one template, filled in differently per host.

07

Handlers, idempotency & tags

Only restarting a service when something actually changed, and running just part of a playbook.

08

Roles & project structure

Breaking a big playbook into small, reusable, shareable pieces.

09

Loops & conditionals

Repeating a task over a list, and running tasks only when a condition holds.

10

Ansible Vault — secrets management

Keeping passwords and keys encrypted at rest, right alongside the rest of your playbooks.

11

Ansible Galaxy — sharing & reusing roles

Installing community roles instead of reinventing "install nginx" for the hundredth time.

12

Error handling & debugging

What to do when a play fails on host 14 of 40, and how to see what a task is really doing.

13

Best practices & real-world patterns

Directory layout, idempotency discipline, and the habits that scale past one playbook.

Ansible quiz

14 questions, straight from the 13 lessons above.