Add debian common role

This commit is contained in:
2023-05-05 15:47:27 -04:00
parent b387d68eda
commit bf6bfe2809
79 changed files with 3166 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# 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 %}