ansible/ansible — pull request #9428 by landryb (2014-10-27 19:36:25+00:00)
Title: parse /etc/fstab on OpenBSD to get mount facts

Pretty straightforward, copy/paste the code used by NetBSD and FreeBSD.. works here, but i question the usefulness of parsing ````/etc/fstab```` vs getting the information live from the system, parsing 'mount' command output ? I see that linux parses ````/etc/mtab````, and keep only some entries (more or less ````grep ^/ /etc/mtab | grep -v none```` output), which should be more live/accurate data, no ?

Should the other operating systems (ie BSDs) also try to gather information from the running system and reflect more the actual 'facts', rather than 'what it should be according to fstab' ? Or facts should also mention/know about say, noauto mounts.. right now, parsing fstab here gives me a lot more entries than mount output. Should we also report NFS mounts ?