While running the ansible task in azure pipeline we are getting the below warning message. Please let us know if we can ignore/suppress the warning.
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: {% for item in hostvars.values() %}{%
if item.MyDoneVar|default(False) %}True{% endif %}{% endfor %}
While running the ansible task in azure pipeline we are getting the below warning message. Please let us know if we can ignore/suppress the warning.
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: {% for item in hostvars.values() %}{%
if item.MyDoneVar|default(False) %}True{% endif %}{% endfor %}
The logic behind your condition eludes me, but the expression for conditions are always subject to templating. This means you can't use {{, {% if, {% for etc.