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: