diff --git a/lib/ansible/parsing/__init__.py b/lib/ansible/parsing/__init__.py index bf0d0aff5e6..7eb6017363f 100644 --- a/lib/ansible/parsing/__init__.py +++ b/lib/ansible/parsing/__init__.py @@ -234,6 +234,7 @@ class DataLoader(): # try to create absolute path for loader basedir + templates/files/vars + filename search.append(self.path_dwim(os.path.join(dirname,source))) + search.append(self.path_dwim(os.path.join(basedir, source))) # try to create absolute path for loader basedir + filename search.append(self.path_dwim(source))