1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adds search in template/files/vars relative to the playbook path (#26460)

This commit is contained in:
Chris Houseknecht 2017-07-05 19:45:09 -04:00 committed by GitHub
parent cf5fb0acdf
commit e2b340dfe0

View file

@ -305,6 +305,7 @@ class DataLoader:
# try to create absolute path for loader basedir + templates/files/vars + filename # try to create absolute path for loader basedir + templates/files/vars + filename
search.append(unfrackpath(os.path.join(dirname, source), follow=False)) search.append(unfrackpath(os.path.join(dirname, source), follow=False))
search.append(self.path_dwim(os.path.join(dirname, source)))
# try to create absolute path for loader basedir + filename # try to create absolute path for loader basedir + filename
search.append(self.path_dwim(source)) search.append(self.path_dwim(source))