This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Description
ISSUE TYPE
COMPONENT NAME
mount module
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OpenBSD
SUMMARY
https://github.com/ansible/ansible-modules-core/blob/devel/system/mount.py#L319 uses -o remount, which doesn't exist on OpenBSD. if you try to update the flags for an existing mountpoint, it will update fstab correctly, but then will try to remount/update the flags on the living FS, and mount module will fail.
STEPS TO REPRODUCE
#grep local /etc/fstab
/dev/wd0g /usr/local ffs rw,wxallowed 0 0
#ansible master -m mount -a 'name=/usr/local opts=rw,wxallowed,nosuid state=mounted fstype=ffs src=/dev/wd0g'
master | FAILED! => {
"changed": false,
"failed": true,
"msg": "Error mounting /usr/local: mount_ffs: -o remount: option not supported\n"
}
#grep local /etc/fstab
/dev/wd0g /usr/local ffs rw,wxallowed,nosuid 0 0
#mount |grep /usr/local
/dev/wd0g on /usr/local type ffs (local, wxallowed)
EXPECTED RESULTS
the living FS should have seen its opts updated.
ACTUAL RESULTS
mount module failed... a possible fix would be to use mount -u which is more or less the equivalent of mount -o remount
#mount -u -o nosuid /usr/local
#mount |grep /usr/local
/dev/wd0g on /usr/local type ffs (local, nosuid, wxallowed)