- name: creating task
shell: my_commnad
when: ns.stdout.find('{{lookup('env',env')}}') == -1
warning
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found:
ns.stdout.find("{{lookup('env','NAMESPACE')}}") == -1
my playbook showing Warning "conditional statements should not include jinja2 templating delimiters".The task is to run the shell command if a paricular env is not present . how should I avoid this warning and keep task working?