play

One section of a playbook that picks a set of hosts with a pattern and lists the tasks to run on them, in order.

In more detail

A play has a name, a hosts pattern and a task list, plus optional settings such as gather_facts, become, vars, roles and handlers. Its name appears in a PLAY banner in the output. A playbook with several plays can target different hosts at each stage.

Related terms

Taught in

References

Certification courses