From 623e0fee71981a6de30a5cc2986e61f4ba8de85f Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Thu, 7 Sep 2023 06:16:51 +0000 Subject: [PATCH] fix-resolv.conf-nameserver-inline-comments --- roles/kubernetes/preinstall/tasks/0020-set_facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/0020-set_facts.yml b/roles/kubernetes/preinstall/tasks/0020-set_facts.yml index 486f614c9cd..5bd4181c47a 100644 --- a/roles/kubernetes/preinstall/tasks/0020-set_facts.yml +++ b/roles/kubernetes/preinstall/tasks/0020-set_facts.yml @@ -79,7 +79,7 @@ - name: Get currently configured nameservers set_fact: - configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(.*)', multiline=True) | ipaddr }}" + configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(\\S*)', multiline=True) | ipaddr }}" when: resolvconf_slurp.content is defined - name: Stop if /etc/resolv.conf not configured nameservers