Add retries for copying binaries from containers

Closes issue: https://github.com/kubespray/kargo/issues/479

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya
2016-09-13 14:36:01 +02:00
parent 2e386dfbdc
commit 6fdcaa1a63
3 changed files with 12 additions and 1 deletions

View File

@@ -34,6 +34,10 @@
- name: Calico | Copy cni plugins from hyperkube
command: "/usr/bin/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
register: cni_task_result
until: cni_task_result.rc == 0
retries: 4
delay: "{{ 20 | random + 3 }}"
changed_when: false
when: use_hyperkube_cni