From 03bded2b6b4714762ddc1efd4252c05a65f983ac Mon Sep 17 00:00:00 2001 From: Dmitri Rubinstein Date: Mon, 6 May 2019 12:29:36 +0200 Subject: [PATCH] Fix adding output of kubeadm to the admin.conf downloaded to the artifacts directory (#4696) Fixes issue https://github.com/kubernetes-sigs/kubespray/issues/4695 --- roles/kubernetes/client/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/client/tasks/main.yml b/roles/kubernetes/client/tasks/main.yml index 19d0f019d..a572ba690 100644 --- a/roles/kubernetes/client/tasks/main.yml +++ b/roles/kubernetes/client/tasks/main.yml @@ -66,7 +66,7 @@ --apiserver-advertise-address {{ external_apiserver_address }} --apiserver-bind-port {{ external_apiserver_port }} {% if kubeadm_version is version('v1.14.0', '>=') %} - && cat {{ kube_config_dir }}/external_kubeconfig/admin.conf && + >/dev/null && cat {{ kube_config_dir }}/external_kubeconfig/admin.conf && rm -rf {{ kube_config_dir }}/external_kubeconfig {% endif %} environment: "{{ proxy_env }}"