mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-01-04 00:12:55 +01:00
add missing 'until' condition in control plane setup
This commit is contained in:
parent
fc69029f16
commit
0627acda44
@ -50,6 +50,7 @@
|
|||||||
register: flannel_result
|
register: flannel_result
|
||||||
changed_when: "'created' in flannel_result.stdout"
|
changed_when: "'created' in flannel_result.stdout"
|
||||||
when: kubernetes_pod_network.cni == 'flannel'
|
when: kubernetes_pod_network.cni == 'flannel'
|
||||||
|
until: flannel_result is not failed
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
@ -58,6 +59,7 @@
|
|||||||
register: calico_result
|
register: calico_result
|
||||||
changed_when: "'created' in calico_result.stdout"
|
changed_when: "'created' in calico_result.stdout"
|
||||||
when: kubernetes_pod_network.cni == 'calico'
|
when: kubernetes_pod_network.cni == 'calico'
|
||||||
|
until: calico_result is not failed
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
@ -66,6 +68,7 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
register: kubectl_version
|
register: kubectl_version
|
||||||
when: kubernetes_pod_network.cni == 'weave'
|
when: kubernetes_pod_network.cni == 'weave'
|
||||||
|
until: kubectl_version is not failed
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 5
|
delay: 5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user