From 5f0e882d016748d1d16c0e54b8d78ab69bbf7f3a Mon Sep 17 00:00:00 2001 From: muffl0n Date: Wed, 19 Feb 2014 21:30:53 +0100 Subject: [PATCH] call expanduser for src and dest --- lib/ansible/runner/action_plugins/unarchive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/runner/action_plugins/unarchive.py b/lib/ansible/runner/action_plugins/unarchive.py index 3e5f98ccae7..55e4519e5c6 100644 --- a/lib/ansible/runner/action_plugins/unarchive.py +++ b/lib/ansible/runner/action_plugins/unarchive.py @@ -46,8 +46,8 @@ class ActionModule(object): if complex_args: options.update(complex_args) options.update(utils.parse_kv(module_args)) - source = options.get('src', None) - dest = options.get('dest', None) + source = os.path.expanduser(options.get('src', None)) + dest = os.path.expanduser(options.get('dest', None)) copy = utils.boolean(options.get('copy', 'yes')) if source is None or dest is None: