Control playbook execution with when conditionals, loops, handlers, tags, limits, and execution strategies.
Conditionals (when)
Run tasks only when conditions match — OS checks, AND/OR/NOT logic, and facts-based automation.
Loops (loop)
Repeat tasks with loop for packages, users, and directories — and combine loops with when for production playbooks.
Handlers & Notifications
Restart or reload services only when a task reports changed — using notify and handlers.
Tags, Limits & Execution Strategies
Run subsets of tasks with tags, target specific hosts with --limit, and control parallelism with linear, free, and serial strategies.