You can use "group_by" if you want something that creates a dynamic group and it will show more concise output.
On Tue, Jul 15, 2014 at 4:18 AM, Serge van Ginderachter < [email protected]> wrote: > > On 15 July 2014 09:49, Nico K. <[email protected]> wrote: > >> Considering that the include is conditional, why is it even processing >> the file? I also tried adding the condition to this specific task, that is >> add the 'when' clause to somefile.yml, however this results in the same >> error. >> > > > It's not the include that is conditional. include+when means applying the > when on each task in the included file. > Also, the combination of a when and a with loop, means, apply the when to > each iterated item. > > You'll need to extend your conditional: when variable is defined and > variable.start is defined and variable end is defined. > > -- > 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/CAEhzMJCcqPrVdLg1D4GrupVxzxrs6mgZTTc%2B%2B%3DqVq0-9O%3DCwmA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAEhzMJCcqPrVdLg1D4GrupVxzxrs6mgZTTc%2B%2B%3DqVq0-9O%3DCwmA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgxX2DcDEKOVqa6EfRoOp7vjg8_4S0RHxkySYfEgTk394w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
