You're not understanding what a string equality test is.
"apple" is not equal to "a", apple *starts* with a.
when: not item.mount.startswith("/")
On Tue, May 13, 2014 at 9:40 AM, Christian Huck <[email protected]>wrote:
> Hi,
>
> this
>
> when: item.mount != "/
>
> does unfortunatly no do what it is supposed to do. The condition fails
> even though item.mount contains a "/".
>
> For explanation: item.mount is derived from ansible_mounts and describes
> the root partition.
>
> Any help appreciated.
>
> Thanks in advance.
>
> --
> 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/02437941-e484-44ee-b221-e0a029974839%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/02437941-e484-44ee-b221-e0a029974839%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%2BnsWgz54B_PNZWAK9sURLSpV_uzKZdxcOMcMrbu%3DY9yeA5wDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.