From e2b340dfe0a652ec655d86b46bd39e764fc91852 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 5 Jul 2017 19:45:09 -0400 Subject: [PATCH] Adds search in template/files/vars relative to the playbook path (#26460) --- lib/ansible/parsing/dataloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/parsing/dataloader.py b/lib/ansible/parsing/dataloader.py index ac502d5eeff..3fefafb6af5 100644 --- a/lib/ansible/parsing/dataloader.py +++ b/lib/ansible/parsing/dataloader.py @@ -305,6 +305,7 @@ class DataLoader: # try to create absolute path for loader basedir + templates/files/vars + filename 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 search.append(self.path_dwim(source))