# that is an errorable condition, since it can easily allow us to double mount a disk.
-name:Check that we don't want to unmount disks when UNMOUNT_DISKS is false
fail:msg="Found disks mounted in the wrong place, but can't unmount them. This role will need to be re-run with -e 'UNMOUNT_DISKS=True' if you believe that is safe."
when:>
when:
not UNMOUNT_DISKS and
volumes | selectattr('device', 'equalto', item.device) | list | length != 0 and