mirror of https://github.com/ansible/ansible.git
Fixes #75371
(cherry picked from commit 5a38076568)
pull/75418/head
parent
e2f14d94b8
commit
71a6954b51
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Jinja2 globals should be accessible even when importing a template without the context (https://github.com/ansible/ansible/issues/75371)
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
{% macro foo(bar) -%}
|
||||||
|
{{ bar }}={{ lookup('lines', 'echo lookedup_bar') }}
|
||||||
|
{%- endmacro %}
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
{% from 'macro_using_globals.j2' import foo %}
|
||||||
|
{{ foo('bar') }}
|
||||||
Loading…
Reference in New Issue