# Options in Mount module for fstab

**URL:** <https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434>\
**Category:** Ansible Project\
**Created:** [January 13, 2021, 9:26pm UTC](https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434 "2021-01-13T21:26:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![1793](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@1793](https://forum.ansible.com/u/1793)\
**Post date:** [January 13, 2021, 9:26pm UTC](https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434/1 "2021-01-13T21:26:22Z")

</div>

Hello there,

I have the following task:

- name: Mount /dev/testvg/testlv  
mount:  
path: /test  
src: /dev/testvg/testlv  
fstype: xfs  
opts: defaults  
state: present

I’m using the mount module. I’m trying to achieve inserting the following line into fstab:

/dev/testvg/testlv /test xfs defaults 1 2

However, when running the playbook, I get the following result:

/dev/testvg/testlv /test xfs defaults 0 0

How can I set 1 2 instead of 0 0 with the mount module?

Regards,

Josue.

---

<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:** [January 13, 2021, 9:28pm UTC](https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434/2 "2021-01-13T21:28:31Z")

</div>

Those are the `dump` and `passno` arguments for the module.

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [January 13, 2021, 10:06pm UTC](https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434/3 "2021-01-13T22:06:41Z")

</div>

Hi,

For xfs file system, fsck is not necessary.

For the record on the man page of fsck.xfs “fsck.xfs - do nothing, successfully”

On rare occasion you could need xfs\_repair !

Regards,

JYL

---

<div class="post-metadata">

**Author:** ![1793](https://avatars.discourse-cdn.com/v4/letter/1/898d66/32.png) [@1793](https://forum.ansible.com/u/1793)\
**Post date:** [January 14, 2021, 7:31pm UTC](https://forum.ansible.com/t/options-in-mount-module-for-fstab/34434/4 "2021-01-14T19:31:31Z")

</div>

Noted. Thank you for the help guys!
