Commit 5c0dd958 by Michael DeHaan

Merge pull request #4028 from willthames/lineinfile_userdir

Expand tilde in paths in file module
parents 00c0770f fe70ed94
...@@ -222,6 +222,8 @@ class AnsibleModule(object): ...@@ -222,6 +222,8 @@ class AnsibleModule(object):
path = params.get('path', params.get('dest', None)) path = params.get('path', params.get('dest', None))
if path is None: if path is None:
return {} return {}
else:
path = os.path.expanduser(path)
mode = params.get('mode', None) mode = params.get('mode', None)
owner = params.get('owner', None) owner = params.get('owner', None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment