Merge branch 'issue_3312_role_links' into devel
This commit is contained in:
commit
5b15010099
1 changed files with 5 additions and 1 deletions
|
@ -254,7 +254,11 @@ def path_dwim_relative(original, dirname, source, playbook_base, check=True):
|
|||
# (used by roles code)
|
||||
|
||||
basedir = os.path.dirname(original)
|
||||
template2 = os.path.join(basedir, '..', dirname, source)
|
||||
if os.path.islink(basedir):
|
||||
basedir = unfrackpath(basedir)
|
||||
template2 = os.path.join(basedir, dirname, source)
|
||||
else:
|
||||
template2 = os.path.join(basedir, '..', dirname, source)
|
||||
source2 = path_dwim(basedir, template2)
|
||||
if os.path.exists(source2):
|
||||
return source2
|
||||
|
|
Loading…
Reference in a new issue