Use the selectattr() filter. For example:

- set_fact:
   myobj: "{{ hostvars[inventory_hostname].ansible_mounts | selectattr('mount', 'equalto', '/') | list }}"
- debug: var=myobj