I've ended up with 2 simple rules on {{}} 1. moustaches don't stack!! {{ var1[{{var2}}] }} <= wrong, just {{var1[var2]}} 2. always use moustaches except when when:. All conditionals already have implied {{ }} so you would be violating rule #1, which CAN work but sometimes gives you unexpected results.
The error you are getting should ONLY happen when using a var w/o {{ }} in a with_ clause. I've tested also and you DO NOT get the error by ommiting {{ }} in a when clause. ---------- 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 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/CACVha7dC62upNweXZGmtYpWeaE_Q%3DQnK5fYi-D8_mEA4G4vW%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.