mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Add support for setting fstab location on Linux too for mount (#3271)
Fix #3153
This commit is contained in:
parent
441205feed
commit
1f8b2f3e6e
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue