From 41562a521291291fb80ce064f6d08d559c9ed494 Mon Sep 17 00:00:00 2001 From: yunchung-kao Date: Fri, 27 Oct 2023 15:51:49 +0800 Subject: [PATCH] Check nameserver when dns is enable --- 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?