Ansible lessons and reference

Lessons on inventory, playbooks, roles, Vault, testing and platform automation.

New to Ansible? Start with the basics. Otherwise, find a topic in the catalog.

Start here

If you are new to Ansible, read these five in order. They build on each other and everything else on the site assumes them.

  1. Ansible Basics

    Core concepts, architecture, and fundamental patterns

  2. Ansible Inventory

    Static and dynamic inventory management

  3. Ansible Playbooks

    Automation workflows and advanced patterns

  4. Ansible Modules

    Built-in and custom module usage

  5. Ansible Roles

    Reusable automation units and Galaxy

Besides the lessons

Guided labs
5 exercises with stated objectives, a task list, hints, and a check that reads your playbook and tells you what is missing. They use the same check-mode runner as the playground.
Playground
A YAML editor, an inventory, and ansible-playbook --check. Load one of the examples, validate the syntax, run it, and read the output — the same loop you will run locally, without the install.
Articles
Longer write-ups on problems that do not fit in a lesson page: testing with Molecule, secrets handling, patching fleets, CI/CD pipelines, and platform work.

Questions

What is Ansible?

Ansible is an agentless configuration management and orchestration tool. You describe the state a machine should be in using YAML, and Ansible connects over SSH (or WinRM on Windows) to make the machine match that description.

What do the lessons cover?

Inventory, playbooks, modules, variables and facts, templating with Jinja2, roles and collections, Vault, testing and linting, and then platform-specific material: Linux and Windows hosts, network devices, containers, the major clouds, Kubernetes, AWX and the Automation Platform. Each page explains the concept and then shows working examples.

Do I need to install anything?

Not to read the lessons or to use the playground, which runs on the server. For real work you will install Ansible on a control node of your own; the CLI tools lesson covers the install and the commands that come with it.

What does the playground actually run?

It writes your playbook and inventory to a temporary directory, runs ansible-playbook --syntax-check, and then runs the playbook with --check (dry run) and a 30 second timeout. Check mode is not a security sandbox: module code still executes as the application user and some modules ignore check mode, so treat it as a scratch host and keep secrets out of it.

Is there a paywall or an account?

No. Every lesson, lab and tool on the site is free to use and no account is required.