Multiple Plays in One Playbook
Target web then db in a single file.
More Than One Play
A playbook is a YAML list, so it can hold multiple plays. Each play targets its own host group. 🎭
Why Split Into Plays
Different tiers need different work. One play sets up web servers, another configures the database hosts.
All lessons in this course
- A Play = Hosts + Tasks
- Naming Tasks for Readable Output
- Multiple Plays in One Playbook
- Task Order & Top-Down Execution