Merge pull request #481 from bogdando/issue/479

Add retries for copying binaries from containers and packages
This commit is contained in:
Smaine Kahlouch
2016-09-14 10:04:32 +02:00
committed by GitHub
5 changed files with 24 additions and 1 deletions

View File

@@ -45,6 +45,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