Home › Learn by Playing › Skills › Ansible

Learn Ansible free, step by step

Automate servers with simple YAML playbooks.

12 units · 108 cards · Basic → Intermediate → Advanced · free, no login

Start learning Ansible ▶

How it works

Try a few cards

💡 Learn

The inventory

The inventory lists your servers in groups, like [web] with web1 and web2. Playbooks then target a group with hosts: web. Ansible connects over SSH; no agent is needed on the servers.

Try it

Where do you list the servers that Ansible manages?

  • A Jinja2 template
  • The Dockerfile
  • The handlers section
  • The inventory file
Show the answer

✓ The inventory file. The inventory lists hosts and groups, like [web] with web1 and web2. A playbook then targets a group with hosts: web.

Try it

Which group name always exists in Ansible, and contains every host in your inventory?

  • all
  • default
  • everyone
  • servers
Show the answer

✓ all. Ansible always gives you the built-in group all. You do not need to write it in the file.

Full syllabus

Basic · 4 units

  1. Inventory
  2. Ad-hoc commands
  3. Playbook structure
  4. apt, copy, service

Intermediate · 4 units

  1. Variables
  2. Handlers
  3. Templates
  4. Loops and conditions

Advanced · 4 units

  1. Roles
  2. Ansible Vault
  3. Galaxy
  4. Testing idempotency

Start learning Ansible ▶

Kramavriddhi Learn is free and independent. Facts are checked against the official documentation. Badges are self-checks, not official certificates. Found a mistake or have an idea? Tell us.