From 913fed00891076594e89109a07e8be359455d274 Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Tue, 9 Apr 2019 09:21:04 +0200 Subject: [PATCH] kubeadmn init: add 'until' to make 'retries' effective (#4464) an 'until' clause is required or 'retries' is ignored (see note @ https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#do-until-loops) --- roles/kubernetes/master/tasks/kubeadm-setup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/master/tasks/kubeadm-setup.yml b/roles/kubernetes/master/tasks/kubeadm-setup.yml index 87124b133..c8178a18b 100644 --- a/roles/kubernetes/master/tasks/kubeadm-setup.yml +++ b/roles/kubernetes/master/tasks/kubeadm-setup.yml @@ -98,6 +98,7 @@ register: kubeadm_init # Retry is because upload config sometimes fails retries: 3 + until: kubeadm_init is succeeded or "field is immutable" in kubeadm_init.stderr when: inventory_hostname == groups['kube-master']|first and not kubeadm_already_run.stat.exists failed_when: kubeadm_init.rc != 0 and "field is immutable" not in kubeadm_init.stderr environment: