# DNS resolver configuration # {{ ansible_managed }} options timeout:1 attempts:3 rotate {% if 'remote' in group_names %} search {{ blsedomains_admindomain }}. {{ blsedomains_rootdomain }}. nameserver 8.8.8.8 nameserver 8.8.4.4 {% else %} {% if 'role_env' in group_names %} search {{ blsedomains_mandomain }}. {{ blsedomains_hostdomain }}. {{ blsedomains_rootdomain }}. {% elif 'physical' in group_names %} search {{ blsedomains_mandomain }}. {{ blsedomains_hostdomain }}. {{ blsedomains_admindomain }}. {{ blsedomains_rootdomain }}. {% else %} search {{ blsedomains_hostdomain }}. {{ blsedomains_admindomain }}. {{ blsedomains_rootdomain }}. {% endif %} nameserver {{ blsecluster_rns1v4 }} nameserver {{ blsecluster_rns2v4 }} {% endif %}