I mean Hi Brain! ooops... 

I have no idea how to edit posts either!

On Tuesday, 30 May 2017 11:39:33 UTC+1, Rich Lees wrote:
>
> Hi Micheal,
>
> Thanks for the reply. I have also seen pretty much that any other example 
> of this warning being triggered is both valid and workaround-able.
>
> I am beginning to think our way of using Ansible (passing through 
> variables into sub-roles) might be different to other peoples...
>
> Which brings me back to my original questions. Will this always be a 
> warning or will it become a "hard" error? At this point I understand that 
> the change won't be reverted and why I just would like to know how big the 
> impact of this will be in the future.
>
> On Thursday, 25 May 2017 13:39:23 UTC+1, Brian Coca wrote:
>>
>> @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