You can't load a "saved" conditional that way (at least currently) as the
conditional loader doesn't do recursive lookups.

-- Michael

On Mar 23, 2014, at 7:42 AM, Arie Skliarouk <[email protected]> wrote:

The following playbook does not work properly - the action is always
executed, why is that?

---
- hosts: *
  vars:
    x: 5
    y: 7

    is_false1: x>y
    is_false2: x>y
  tasks:

  - name: either is true
    shell: echo either is true
    when: is_false1 or is_false2

>
>  --
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/2ee6e2c4-a02d-4ea7-8c2b-f55f843de572%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/2ee6e2c4-a02d-4ea7-8c2b-f55f843de572%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/8513471576775101692%40unknownmsgid.
For more options, visit https://groups.google.com/d/optout.

Reply via email to