diff --git a/lib/ansible/modules/files/replace.py b/lib/ansible/modules/files/replace.py index 5248e67bcb8..059d05d9724 100644 --- a/lib/ansible/modules/files/replace.py +++ b/lib/ansible/modules/files/replace.py @@ -155,7 +155,7 @@ def main(): ) params = module.params - path = os.path.expanduser(params['path']) + path = params['path'] res_args = dict() if os.path.isdir(path):