From 1f8b2f3e6e18370be97db592c8f2b4b06e9791bb Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 23 Aug 2016 17:38:59 +0200 Subject: [PATCH] Add support for setting fstab location on Linux too for mount (#3271) Fix #3153 --- lib/ansible/modules/system/mount.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/system/mount.py b/lib/ansible/modules/system/mount.py index cf2a2823e5d..0be9ee2416e 100644 --- a/lib/ansible/modules/system/mount.py +++ b/lib/ansible/modules/system/mount.py @@ -233,6 +233,9 @@ def mount(module, **kwargs): if get_platform().lower() == 'freebsd': cmd += [ '-F', args['fstab'], ] + if get_platform().lower() == 'linux': + cmd += [ '-T', args['fstab'], ] + cmd += [ name, ] rc, out, err = module.run_command(cmd)