diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index f0275e86874..842c057e9bc 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -815,7 +815,7 @@ class AnsibleModule(object): return (uid, gid) def find_mount_point(self, path): - path = os.path.abspath(os.path.expanduser(os.path.expandvars(path))) + path = os.path.realpath(os.path.expanduser(os.path.expandvars(path))) while not os.path.ismount(path): path = os.path.dirname(path) return path