mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
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.
|
||
|---|---|---|
| .. | ||
| role | ||
| __init__.py | ||
| attribute.py | ||
| base.py | ||
| become.py | ||
| block.py | ||
| conditional.py | ||
| handler.py | ||
| handler_task_include.py | ||
| helpers.py | ||
| included_file.py | ||
| loop_control.py | ||
| play.py | ||
| play_context.py | ||
| playbook_include.py | ||
| role_include.py | ||
| taggable.py | ||
| task.py | ||
| task_include.py | ||