you can write the when in the include or in 2.0 use blocks On Thu, Jul 23, 2015 at 8:13 AM, Vladimir Ondrus <[email protected]> wrote: > this is current state: > > when you want to implement this > if(x=true) > task1 > task2 > task3 > task4 > task5 > if(y=true) > task6 > task7 > > you should write when to each task: > task1 when x > task2 when x > task3 when x > task4 when x > task5 when x > task6 when y > task7 when y > > but when there would be something like goto, you could save many whens, and > it would have the desired effect that task would be completely skipped: > > goto label when x != true > task1 > task2 > task3 > tast4 > tast6 > > label > > goto end when y !=true > > tast6 > tast7 > end > > > > On Thursday, July 23, 2015 at 1:37:17 PM UTC+2, Brian Coca wrote: >> >> the when will be applied to each task, so they will be skipped >> >> >> >> -- >> Brian Coca
-- Brian Coca -- 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/CAJ5XC8nX5Kp9t9X4XOC5eVCLC3h63QvLJ1SPGioGqpr7sseZxw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
