1 2 3 4 5 6 7 8
{% if mtadomain is defined %} {% for item in mtadomain %} {{ item }} OK smtp.{{ item }} OK {{ ansible_hostname }}.{{ item }} OK {% endfor %} {% endif %}