I'm not sure what you mean when you say "syntax checker". Can you show the ansible command line you are running and also the output you are receiving?
On Fri, Jun 13, 2014 at 3:15 PM, Oliver Heinz < oliver.heinz....@googlemail.com> wrote: > Am Freitag, 13. Juni 2014 19:58:19 UTC+2 schrieb Michael DeHaan: > >> "But there is no smart way to decide which tasks to run based on facts - >> just because the YAML syntax checker raises an error because a variable is >> not defined (yet)" >> when: foo is defined >> >> > When the variables used for the include have reasonable defaults the > parser will not fail.So I defined some foo ;-) > I defined those variables in role/defaults, because they have to loose in > priotity to facts. But sadly defaults are not used when the syntax checker > runs. If I rename the defaults dir to vars they are used and the syntax > checker is satisfied [but for precedence reasons I obviously need defaults] > => is this difference in behavior for role vars and defaults on purpose? > > > > > > > > > > > >> it's a thing >> >> -- > 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 ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/f6046907-d529-404f-9e97-d9424187178d%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f6046907-d529-404f-9e97-d9424187178d%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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgy-jxsikUBuSaqJWP_DGj%3D%3DWuEhCEGKSRSXnpr%3DN5oXmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.