Also, I'd suggest to update the documentation at 
http://docs.ansible.com/ansible/playbooks_filters.html#version-comparison-filters
 
about this too, because this is where I got it from.

Am Donnerstag, 21. April 2016 08:50:43 UTC+2 schrieb Jürgen Haas:
>
> 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/6875e448-a4de-4496-b642-9f25071bee52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to