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.
On Tue, Feb 25, 2014 at 7:18 AM, Jeremy Schulman <[email protected]>wrote: > 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/d4d1bd7b-4166-4861-b74f-c6b941af8229%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKEYsmOS1MD%3Dab4cMjS__BnBmM-rXwzGxwbKhxpcdmrR%3D_ygPA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
