From 24e39b50fe5f7198165649ced4996cc6ef0fd9a6 Mon Sep 17 00:00:00 2001 From: Tennis Smith Date: Sun, 1 Oct 2017 19:34:44 -0500 Subject: [PATCH] Fix warnings about duplicated dns domain in host search line --- roles/kubernetes/preinstall/tasks/set_resolv_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml b/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml index 18728faa7..660b8fb88 100644 --- a/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml +++ b/roles/kubernetes/preinstall/tasks/set_resolv_facts.yml @@ -82,7 +82,7 @@ - name: generate search domains to resolvconf set_fact: searchentries: - search {{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(' ') }} + search {{ searchdomains|default([]) | join(' ') }} domainentry: domain {{ dns_domain }} supersede_search: