1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4028 from willthames/lineinfile_userdir

Expand tilde in paths in file module
This commit is contained in:
Michael DeHaan 2013-09-15 09:33:49 -07:00
commit 5c0dd958e5

View file

@ -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)