Skip to content

Commit

Permalink
Adds search in template/files/vars relative to the playbook path (ans…
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Houseknecht authored Jul 5, 2017
1 parent cf5fb0a commit e2b340d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/parsing/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def path_dwim_relative(self, path, dirname, source, is_role=False):

# 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))
Expand Down

0 comments on commit e2b340d

Please sign in to comment.