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)
pull/4468/head
Maxime Guyot 2019-04-09 09:21:04 +02:00 committed by Kubernetes Prow Robot
parent 80ea18bd28
commit 913fed0089
1 changed files with 1 additions and 0 deletions

View File

@ -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: