You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If boot option of mount module is set to false it shall add noauto mount option on Linux, NetBSD and OpenBSD systems.
But there are exceptions. E.g. if defaults in opts
Device is mounted, but will not be mounted on next boot.
ACTUAL RESULTS
Device is mounted and will be mounted on next boot
The text was updated successfully, but these errors were encountered:
copyrights
changed the title
mount boot: false doesn't work on Linux, FreeBSD, NetBSD and OpenBSD systems
mount boot: false doesn't work on Linux, NetBSD and OpenBSD systems
May 23, 2022
I guess the reason for the exception on defaults is that defaults includes auto. from mount(8):
defaults
Use the default options: rw, suid, dev, exec, auto, nouser, and async.
Note that the real set of all default mount options depends on the kernel and filesystem type. See the beginning of this section for more details.
copyrights
changed the title
mount boot: false doesn't work on Linux, NetBSD and OpenBSD systems
mount boot: false doesn't work on Linux systems
May 23, 2022
copyrights
changed the title
mount boot: false doesn't work on Linux systems
mount boot: false doesn't work on Linux, NetBSD and OpenBSD systems
May 23, 2022
SUMMARY
If
boot
option of mount module is set tofalse
it shall add noauto mount option on Linux, NetBSD and OpenBSD systems.But there are exceptions. E.g. if
defaults
inopts
ansible.posix/plugins/modules/mount.py
Line 746 in 2d3f55c
But this is always the case if
opts
is not set or not on Solaris.ansible.posix/plugins/modules/mount.py
Line 707 in 2d3f55c
Side note: Documentation is misleading as it says
opts
has no default value. In fact the default value is either "default" or "-".ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
no relevant
STEPS TO REPRODUCE
EXPECTED RESULTS
Device is mounted, but will not be mounted on next boot.
ACTUAL RESULTS
Device is mounted and will be mounted on next boot
The text was updated successfully, but these errors were encountered: