string comparison

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’re not understanding what a string equality test is.

“apple” is not equal to “a”, apple starts with a.

when: not item.mount.startswith(“/”)

sorry - that was a stupid question I guess.
Thanks for the response though.
I fixed that issue.