Ansible facts missing nfs mounts

663 views
Skip to first unread message

Mzp45

unread,
Oct 2, 2014, 11:57:17 AM10/2/14
to ansible...@googlegroups.com
Hi,
The facts that are returned from a machine are missing the hard mounted nfs mounts. So something like this in fstab is not available as a fact

<nfsserver>:/vol/vol1/<directory>     /<mountpoint>      nfs     bg,ro,hard,intr,tcp 0 0

Looking at the facts collection script, it looks like only local devices are being collected (at least on Linux). Is there a reason why the nfs mounts are not included? and is there an alternative way to collect them? 

Thanks 

Brian Coca

unread,
Oct 2, 2014, 12:06:37 PM10/2/14
to ansible...@googlegroups.com

I was the one that added the original code for this, i left out all virtual and network systems for simplicity, there should be no problem adding networked filesystems and mount, I should just do it under a different key to avoid changing the current expectations.

Brian Coca

Mzp45

unread,
Oct 2, 2014, 12:18:46 PM10/2/14
to ansible...@googlegroups.com
Thanks - would that be available in the next release? 

Michael DeHaan

unread,
Oct 2, 2014, 4:56:23 PM10/2/14
to ansible...@googlegroups.com
I can't commit to whether that would or wouldn't be included.



--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3ec2d026-38ce-4a57-adad-60398f3d0bc2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mzp45

unread,
Oct 3, 2014, 8:59:23 AM10/3/14
to ansible...@googlegroups.com
Ok. Do you mean just for the next release or for future?
Would you guys be interested in a pull request if we wrote a module for this?

Thanks  

Eric Wedaa

unread,
Oct 5, 2014, 1:51:13 PM10/5/14
to ansible...@googlegroups.com
This would be handy for me as well, as we have to mount AIX Repos to our AIX servers, and sometimes they are not always mounted.  Being able to mount them when they are missing would be a good thing. (Otherwise I have to just mount it, and take the error, or do some kind of test for a file inside the repo and hope the file is always there.

>>>Ericw
Reply all
Reply to author
Forward
0 new messages