From b351bb8402cf924bbe08c02e1adfe9db3ce83d77 Mon Sep 17 00:00:00 2001 From: Stepan Andrushko Date: Thu, 7 Mar 2019 17:55:01 +0200 Subject: NSB: Improve get_url in ansible scripts Added retries and delay to the ansible 'get_url' module to get more robust script. JIRA: YARDSTICK-1605 Change-Id: Ic4d0b937ad810e42db61c0a8b1f6f137557392f8 Signed-off-by: Stepan Andrushko --- ansible/roles/download_pktgen/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ansible/roles/download_pktgen/tasks/main.yml') diff --git a/ansible/roles/download_pktgen/tasks/main.yml b/ansible/roles/download_pktgen/tasks/main.yml index ff71f207d..b5ac8cfe8 100644 --- a/ansible/roles/download_pktgen/tasks/main.yml +++ b/ansible/roles/download_pktgen/tasks/main.yml @@ -22,6 +22,10 @@ dest: "{{ pktgen_dest }}" validate_certs: False checksum: "{{ pktgen_sha256s[pktgen_version] }}" + register: package_result + until: package_result is succeeded + retries: 10 + delay: 5 - unarchive: src: "{{ pktgen_dest }}/{{ pktgen_file }}" -- cgit 1.2.3-korg