From 1ef9930b8024853be1a6aa22130d728672582b3a Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 18 Dec 2013 23:31:03 -0500 Subject: [PATCH] Addresses #5341 Expand home directories when searching for roles in ansible-playbook --- lib/ansible/playbook/play.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index e404e8ab01..b42b3dc6f2 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -164,6 +164,7 @@ class Play(object): if C.DEFAULT_ROLES_PATH: search_locations = C.DEFAULT_ROLES_PATH.split(os.pathsep) for loc in search_locations: + loc = os.path.expanduser(loc) possible_paths.append(utils.path_dwim(loc, orig_path)) for path_option in possible_paths: