This website requires JavaScript.
Explore
Cloud
Chat
CI/CD
Help
Sign in
cmueller
/
ansible
Watch
1
Star
0
Fork
You've already forked ansible
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
17ef253ad1
ansible
/
test
/
integration
/
targets
/
lookups
/
templates
/
hello.txt
2 lines
33 B
Text
Raw
Normal View
History
Unescape
Escape
Fix regression in jinja2 include search path (#18617) * Fix regression in jinja2 include search path Since commit 3c39bb5, the 'ansible_search_path' variable is used to set jinja2's search path for {% include %} directives. However, this path is the the proper one because our templates live in 'templates' subdirs in our search path. This is a regression because previously, our include search path would include the dirname of the currently interpreted file, which worked most of the time. fixes #18526 * Fix template lookup search path Improve fix in commit c96c853 so that the search path contain both template-suffixed paths as well as original paths. ref PR #18617 * Add integration test for template lookups Tests regression at #18526 This test fails on current devel branch and succeeds on PR #18617
2016-11-29 22:23:06 +01:00
Hello {% include 'world.txt' %}!
Reference in a new issue
Copy permalink