How to get a list of mount points from facts gathered by ansible on Linux host?

Hi Team:

I’m trying to get a list variable with mount points from Ansible facts. But, I’m getting the whole “ansible_mounts” facts in JSON format. I have difficult time to retrieve only mount points in list format.

Like below.

mount_points = [‘/’, ‘/boot’, ‘home’, ‘/usr’, ‘/var’, ‘/tmp’]

Please help.

Thanks,
Shibhi

{{ ansible_mounts | map(attribute='mount') | list }}