From 04d06b9238ef59139429ab05745676b95d0786b9 Mon Sep 17 00:00:00 2001 From: Michael McCulloch Date: Sun, 4 Feb 2024 09:21:43 -0700 Subject: [PATCH] shell --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index a77a55f..9e3dbbb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -62,7 +62,7 @@ # Set up nodes. - name: Get the kubeadm join new master certificate key. - command: kubeadm init phase upload-certs --upload-certs | tail -n 1 + shell: set -o pipefail && kubeadm init phase upload-certs --upload-certs | tail --lines 1 changed_when: false when: inventory_hostname == groups['k8s_control_plane'][0] register: kubernetes_certificate_result