diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index df591444d9..28ba524e27 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -726,7 +726,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