Options in Mount module for fstab

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.

Those are the dump and passno arguments for the module.

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

Noted. Thank you for the help guys!