mirror of https://github.com/ansible/ansible.git
add jinja2 global to reserved names (#71088)
* add jinja2 global to reserved names also allow expansion by additional context provided from caller fixes #41955 Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>pull/71113/head
parent
504ef607f3
commit
662d34b9a7
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Handle more varnames that can create conflicts, expand a function in general, handle jinja2 globals in particular (https://github.com/ansible/ansible/issues/41955).
|
||||||
@ -0,0 +1 @@
|
|||||||
|
shippable/posix/group2
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
vars:
|
||||||
|
lipsum: jinja2 uses me internally
|
||||||
|
tasks:
|
||||||
|
- debug:
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
ansible-playbook reserved_varname_warning.yml "$@" 2>&1| grep 'Found variable using reserved name: lipsum'
|
||||||
Loading…
Reference in New Issue