0Pricing
Ansible Academy · Lesson

A Play = Hosts + Tasks

How a play maps tasks onto a host group.

Meet the Play

A play is the heart of a playbook. It maps a set of tasks onto a group of hosts and runs them there. 🎯

Two Halves of a Play

Every play answers two questions: which machines, and what to do. That is exactly hosts plus tasks.

All lessons in this course

  1. A Play = Hosts + Tasks
  2. Naming Tasks for Readable Output
  3. Multiple Plays in One Playbook
  4. Task Order & Top-Down Execution
← Back to Ansible Academy