On Tue, 23 May 2017, at 14:03, Matt Martz wrote:
> when statements are already executed in the context of jinja, and
> shouldn't
> also include jinja2 delimiters.
> 
> To fix your when statement is pretty simple:
> 
> when: not ansible_check_mode and (zerotier_status != "OK" or
>   zerotier_name != inventory_hostname)
> 
> Effectively all you generally need is to remove the {{ }}, and since you
> wrapped the delimiters in quotes, remove them too.
> 
> You were already using other vars without {{ }}.

#facepalm moment - thanks everybody!

A+
Dave

-- 
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/1495562056.1595592.986165496.480B4D9D%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to