mirror of https://github.com/ansible/ansible.git
Ensure `when` warning is checked before expanding (#25092)
The `when` condition templating warning should only happen if the condition itself contains templating, not if variables in the condition are themselves composed through templating Before ``` vars: x: hello y: "{{ x }}" tasks: - debug: msg=hello when: y ``` would fire a warning because `y` would get expanded to `{{ x }}`. This checks whether a warning is required prior to expansion.pull/24865/merge
parent
69efb61008
commit
23324bdda0
Loading…
Reference in New Issue