SyntaxFix
Write A Post
Hire A Developer
Questions
This works for me in Ansible 2.9:
variable1 = www.example.com. variable2 = www.example.org. when: ".com" in variable1
and for not:
when: not ".com" in variable2