From 7269eb54134a8d246ee8d84a7f15af4b3a81cf1e Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 19 Oct 2018 15:15:03 +1000 Subject: [PATCH] ansible-test: add retry for Windows httptester download (#47334) (cherry picked from commit e6a327fb8201124e3875325b28e7e7f698a9f5c1) --- test/integration/targets/prepare_http_tests/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/targets/prepare_http_tests/tasks/main.yml b/test/integration/targets/prepare_http_tests/tasks/main.yml index 583a24305bf..bb69662215e 100644 --- a/test/integration/targets/prepare_http_tests/tasks/main.yml +++ b/test/integration/targets/prepare_http_tests/tasks/main.yml @@ -47,6 +47,10 @@ win_get_url: url: http://ansible.http.tests/{{ item }} dest: '{{ win_output_dir }}\{{ item }}' + register: win_download + # Server 2008 R2 is slightly slower, we attempt 5 retries + retries: 5 + until: win_download is successful when: ansible_os_family == 'Windows' with_items: - client.pem