|
@ -137,11 +137,11 @@ |
|
|
set_fact: |
|
|
set_fact: |
|
|
coredns_server: |- |
|
|
coredns_server: |- |
|
|
{%- if dns_mode == 'coredns' and not dns_early|bool -%} |
|
|
{%- if dns_mode == 'coredns' and not dns_early|bool -%} |
|
|
{{ [ skydns_server ] + upstream_dns_servers|default([]) }} |
|
|
|
|
|
|
|
|
{{ [ skydns_server ] }} |
|
|
{%- elif dns_mode == 'coredns_dual' and not dns_early|bool -%} |
|
|
{%- elif dns_mode == 'coredns_dual' and not dns_early|bool -%} |
|
|
{{ [ skydns_server ] + [ skydns_server_secondary ] + upstream_dns_servers|default([]) }} |
|
|
|
|
|
|
|
|
{{ [ skydns_server ] + [ skydns_server_secondary ] }} |
|
|
{%- elif dns_mode == 'manual' and not dns_early|bool -%} |
|
|
{%- elif dns_mode == 'manual' and not dns_early|bool -%} |
|
|
{{ ( manual_dns_server.split(',') | list) + upstream_dns_servers|default([]) }} |
|
|
|
|
|
|
|
|
{{ ( manual_dns_server.split(',') | list) }} |
|
|
{%- elif dns_early|bool -%} |
|
|
{%- elif dns_early|bool -%} |
|
|
{{ upstream_dns_servers|default([]) }} |
|
|
{{ upstream_dns_servers|default([]) }} |
|
|
{%- endif -%} |
|
|
{%- endif -%} |
|
|