"     is_master: "{{'-1' in inventory_hostname }}"

is_master: "-1 in inventory_hostname"

when: "{{ is_master }}"

That should cause your extra level of indirection.





On Sat, May 24, 2014 at 12:12 PM, Evie Kassela <[email protected]> wrote:

> Curiously this syntax seems to be working. Should I change it anyway?
>
> The problem finally seems to be that 'when' doesn't get evaluated..This is
> how is_master is set:
>      is_master: "{{'-1' in inventory_hostname }}"
> and gets a value of 'True' of 'False'..Does it need to be 'true' or
> 'false' to work?
> It worked with this:
>      when: is_master == 'True'
> but i don't understand why, this code was working a few days ago and now
> it's not..
>
> Thanks
>
> --
> 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/9620a462-7b12-4559-b899-72e5d29bbab8%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/9620a462-7b12-4559-b899-72e5d29bbab8%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/CA%2BnsWgysgeKbxx6MMqnFCpd0AdC2-R%3Ds5XmnUoD0nuO_oY4c4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to