mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Addresses #5341 Expand home directories when searching for roles in ansible-playbook
This commit is contained in:
parent
c0aa02144f
commit
1ef9930b80
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue