skip a play in a playbook?

lets say i have a playbook with three plays. i would like to skip the middle play if some condition is met. is this possible without having to add a 'when' condition to each task in the middle play?

thank you1

Roles can be run conditionally, so you might want to look at transitioning the “middle” play to a role if you do not want to mark every task with a when: statement.

group_by is a really good module to use here, actually.

The benefit is that you don’t see the “skipped” for every task in the role.

http://docs.ansible.com/group_by_module.html

Run group_by in one task in play #1 and have play2 target the new temporary group.

thank you, i will try those approaches. much appreciated!