From 69bf5331b41f35a0e165c73be6b60246ec58559e Mon Sep 17 00:00:00 2001 From: AlexZolotarenko Date: Thu, 24 Aug 2017 16:22:48 +0200 Subject: [PATCH] Fix incorrect command-line parameters for Solaris (#22865) * Fix incorrect command-line parameters for Solaris * Update mount.py --- lib/ansible/modules/system/mount.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/mount.py b/lib/ansible/modules/system/mount.py index 227556696b..43ff6bba88 100644 --- a/lib/ansible/modules/system/mount.py +++ b/lib/ansible/modules/system/mount.py @@ -317,7 +317,10 @@ def unset_mount(module, args): def _set_fstab_args(fstab_file): result = [] - if fstab_file and fstab_file != '/etc/fstab': + if ( + fstab_file and + fstab_file != '/etc/fstab' and + get_platform().lower() != 'sunos'): if get_platform().lower().endswith('bsd'): result.append('-F') else: