@Micheal, in your case having the extra moustaches ({{ }}) would cause
unwanted double interpolation, @Rich is actually using that on
purpose. So the warning was valid in your case, but not his.

For templating there are mainly 2 rules (though 2nd is actually
consequence of the first):

- moustaches don't stack: {{ {{ }} }} <= you should not use tempating
inside templating, normally you want contactenation or hostvars[]
- Always use moustaches except when `when:` <= conditionals are
'expressions' so they already have an implied template which then hits
rule #1



----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to