The YAML parser may be reading the '>' as the line continuation character,
so you may need to wrap that in quotes:

- { role: test_roleversion, when: "ansible_local.apache.version is not
defined or module.version > ansible_local.apache.version" }


On Thu, Apr 3, 2014 at 9:29 AM, Marcin Prączko <[email protected]>wrote:

> Hi,
>
> Don't know why worked only once, no luck with this still.
> Givining up.: ( :(
>
> This syntax at a least run condition everytime and not reporting error:
>   roles:
>     - { role: test_roleversion,
>         when: { ansible_local.apache.version is not defined or
> module.version > ansible_local.apache.version } }
>
> Everything else which I tried after running command on remote node: rm -f
> /etc/ansible/facts/* failed with error:
>
> error while evaluating conditional: ansible_local.apache.version is not
> defined or module.version > ansible_local.apache.version
>
> Marcin.
>
>  --
> 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/5fe22919-7085-48c8-a4f0-eeaff821801c%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/5fe22919-7085-48c8-a4f0-eeaff821801c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFg%2Bn8QWms0nEAitGYMiOqZ9a5MqeY_tWOx8pYhMLf22m%3DgMhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to