# How to check if file system is mounted?

**URL:** <https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 22, 2016, 11:32pm UTC](https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517 "2016-05-22T23:32:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 22, 2016, 11:32pm UTC](https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517/1 "2016-05-22T23:32:21Z")

</div>

The setup module that normally runs at the start of the play will return mounts of a system in `ansible_mounts` (if I remember the var name correctly)

You can use this var to look.

---

<div class="post-metadata">

**Author:** ![Robert\_F](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Robert\_F](https://forum.ansible.com/u/Robert_F)\
**Post date:** [May 23, 2016, 1:21am UTC](https://forum.ansible.com/t/how-to-check-if-file-system-is-mounted/21517/2 "2016-05-23T01:21:50Z")

</div>

Yes, the is an ansible\_mounts fact but I had checked it previously and it doesn’t indicate that the file system is mounted even though I know it is.
