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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e88fe5d7-c65a-4809-b2e9-a748c43f7580%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to