Options in Mount module for fstab

253 views
Skip to first unread message

1793...@gmail.com

unread,
Jan 13, 2021, 4:26:22 PM1/13/21
to Ansible Project

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.

Matt Martz

unread,
Jan 13, 2021, 4:29:23 PM1/13/21
to ansible...@googlegroups.com
Those are the `dump` and `passno` arguments for the module.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/44080506-2213-48ef-8f7a-d9b0ff18bdbcn%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

Jean-Yves LENHOF

unread,
Jan 13, 2021, 5:07:00 PM1/13/21
to ansible...@googlegroups.com

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

Josue Arroyo

unread,
Jan 14, 2021, 2:31:31 PM1/14/21
to Ansible Project
Noted. Thank you for the help guys!
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.


--
Matt Martz
@sivel
sivel.net
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages