Well, when I do

failed_when: ansible_version.full | version_compare('2.0.0.0', operator='lt', 
strict=False)

I'll get this error:
The error was: template error while templating string: unexpected '}', expected 
')'. String: {% if ansible_version.full|version_compare('2.0.0.0' %} True {% 
else %} False {% endif %}"}





Am Mittwoch, 20. April 2016 18:09:26 UTC+2 schrieb Brian Coca:
>
> First `​always use moustaches except when when:​`, you are 
> stringifying/templating/stringifying/templating, this can lead to 
> unexpected errors, just write it this way:
>
> failed_when: ansible_version.full | version_compare('2.0.0.0', 
> operator='lt', strict=False)
>
>
> ----------
> 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 [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/c3353724-21ea-403b-a950-341da91f064d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to