ansible/lib/ansible
Virgil Dupras bf48383610 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 16:23:06 -05:00
..
cli Python 3 fixes for ansible-doc. 2016-11-03 16:09:24 -07:00
compat
config
errors Add error info if tabs are found in the yaml (#18343) 2016-11-08 11:43:08 -05:00
executor unified boolean function 2016-11-29 12:34:30 -05:00
galaxy Cast input role version to string before comparing to available versions (#18269) 2016-10-31 21:07:38 -04:00
inventory Properly sort groups by name as well as depth when getting vars 2016-11-18 22:57:52 -06:00
module_utils Fix traceback in atomic_move (#18649) 2016-11-28 15:19:42 -05:00
modules Submodule update 2016-11-29 13:26:56 -06:00
parsing Fix 'ansible-vault edit' crash on changed nonascii 2016-11-16 15:14:07 -05:00
playbook unified boolean function 2016-11-29 12:34:30 -05:00
plugins Fix regression in jinja2 include search path (#18617) 2016-11-29 16:23:06 -05:00
template always template when called from template (#18490) 2016-11-15 15:16:46 -05:00
utils unified boolean function 2016-11-29 12:34:30 -05:00
vars ansible_playbook_python (#18530) 2016-11-23 16:30:46 -05:00
__init__.py
constants.py unified boolean function 2016-11-29 12:34:30 -05:00
release.py
test-requirements.txt