I have this when clause that contains a variable named agent_host and I can't determine how to rewrite it to remove the mustaches. The logic works, however I get the warning.
when: "'Linked to: {{ agent_host }}' not in nessus_link_status.stdout"
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: 'Linked to: {{ agent_host }}' not in nessus_link_status.stdout
Thanks,
Stan
when: "'Linked to: agent_host' not in nessus_link_status.stdout"
The above works for me.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/PH0PR10MB559317CE2B6196CA9289334CF0B39%40PH0PR10MB5593.namprd10.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/044e01d94e16%2446054da0%24d20fe8e0%24%40gmail.com.