So this still works and we know because we have an integration test for it, but what you have with the "when: file is defined" has NEVER worked.
What happens with an include is the conditional is applied to all tasks in the include, it *cannot* be used to decide to include something or not, because the same tasks (with different variable contexts of course) get applied to all hosts. On Sun, Jul 27, 2014 at 5:08 PM, Nico K. <[email protected]> wrote: > Hi, > > I just updated to the latest and greatest revision and since the update I > can no longer perform an include of a file defined through a variable. > > For instance: > > - include: "{{ file }}.yml" > when: file is defined > > now throws the following error: > > ERROR: file could not read: /path/to/file/"file".yml > > (note the double quotes that are added around 'file'). > > -Nico. > > -- > 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/cb5b1d34-7f80-4377-8206-e6d5be088c19%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/cb5b1d34-7f80-4377-8206-e6d5be088c19%40googlegroups.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%2BnsWgy5Sa%2Bgzd_e%2BCzup3WdyhFvzz3Rhid7Ciev8oEEM3ZYbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
