From 1ebaffb386a89f034ec7a3c5ba238b35ae5d13e4 Mon Sep 17 00:00:00 2001 From: yun Date: Wed, 1 Nov 2023 10:07:06 +0800 Subject: [PATCH] Check nameserver when dns is enable (#10561) --- roles/kubernetes/preinstall/tasks/0020-set_facts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/preinstall/tasks/0020-set_facts.yml b/roles/kubernetes/preinstall/tasks/0020-set_facts.yml index 3d41050f5b5..d4288cc1c47 100644 --- a/roles/kubernetes/preinstall/tasks/0020-set_facts.yml +++ b/roles/kubernetes/preinstall/tasks/0020-set_facts.yml @@ -91,6 +91,7 @@ - configured_nameservers is defined - not (upstream_dns_servers is defined and upstream_dns_servers | length > 0) - not (disable_host_nameservers | default(false)) + - dns_mode in ['coredns', 'coredns_dual'] - name: NetworkManager | Check if host has NetworkManager # noqa command-instead-of-module - Should we use service_facts for this?