diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index c3d3708352..131a3e315d 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -321,6 +321,9 @@ def path_dwim(basedir, given): make relative paths work like folks expect. ''' + if given.startswith("'"): + given = given[1:-1] + if given.startswith("/"): return os.path.abspath(given) elif given.startswith("~"):