Also reported this in the issue queue: 
https://github.com/ansible/ansible/issues/15572

Looks like there is a broader issue.

Am Montag, 25. April 2016 08:21:30 UTC+2 schrieb Jürgen Haas:
>
> Has anyone else had this issue as well? Looks to be that version_compare() 
> is completely broken. @Brian, what about the follow up issue when removing 
> some of the wrappers like suggested?
>
> Am Donnerstag, 21. April 2016 09:16:17 UTC+2 schrieb Jürgen Haas:
>>
>> 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/502468a3-5f41-4c80-829e-4becf8c19b08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to