188c3c608a
Per a change in jinja2 2.9, local variables no longer are prefixed with l_, so this updates AnsibleJ2Vars to pull in all locals (while excluding some) regardless of name. Fixes #20063 (cherry picked from commit 4d49b317929b86e1fc1b0cbace825ff73b372dc7)
20 lines
332 B
YAML
20 lines
332 B
YAML
templated_var: templated_var_loaded
|
|
|
|
number_var: 5
|
|
string_num: "5"
|
|
bool_var: true
|
|
part_1: 1
|
|
part_2: "Foo"
|
|
null_type: !!null
|
|
|
|
templated_dict:
|
|
number: "{{ number_var }}"
|
|
string_num: "{{ string_num }}"
|
|
null_type: "{{ null_type }}"
|
|
bool: "{{ bool_var }}"
|
|
multi_part: "{{ part_1 }}{{ part_2 }}"
|
|
|
|
parent_vars:
|
|
- foo
|
|
- bar
|
|
- bam
|