Add debian common role
This commit is contained in:
19
common-debian/templates/etc/resolv.conf.j2
Normal file
19
common-debian/templates/etc/resolv.conf.j2
Normal 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 %}
|
Reference in New Issue
Block a user