From fe70ed94e380a8de4195bea57d7eec5b79cf1a72 Mon Sep 17 00:00:00 2001
From: willthames <will@thames.id.au>
Date: Thu, 5 Sep 2013 14:43:42 +1000
Subject: [PATCH] Expand tilde in paths in file module

---
 lib/ansible/module_common.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py
index 062ec0e036c..02a028eae45 100644
--- a/lib/ansible/module_common.py
+++ b/lib/ansible/module_common.py
@@ -222,6 +222,8 @@ class AnsibleModule(object):
         path = params.get('path', params.get('dest', None))
         if path is None:
             return {}
+        else:
+            path = os.path.expanduser(path)
 
         mode   = params.get('mode', None)
         owner  = params.get('owner', None)