HI i am new to jinja2 and trying to use regular expression as shown below
{% if ansible_hostname == \'uat\' %} {% set server = \'thinkingmonster.com\' %}
Thanks to Steve E. hint, I've figured out a way to add regex in a template condition:
{% if server | regex_search('thinking') %} .... {% endif %}