aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/download_l2fwd/tasks
diff options
context:
space:
mode:
authorStepan Andrushko <stepanx.andrushko@intel.com>2019-03-07 17:55:01 +0200
committerStepan Andrushko <stepanx.andrushko@intel.com>2019-03-07 17:55:01 +0200
commitb351bb8402cf924bbe08c02e1adfe9db3ce83d77 (patch)
tree6f298570035bb11d72011b5ea10341b4218e1f2c /ansible/roles/download_l2fwd/tasks
parent4c995d8a3ad25afe2ad8d75d43c7519ce22797eb (diff)
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 <stepanx.andrushko@intel.com>
Diffstat (limited to 'ansible/roles/download_l2fwd/tasks')
-rw-r--r--ansible/roles/download_l2fwd/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/ansible/roles/download_l2fwd/tasks/main.yml b/ansible/roles/download_l2fwd/tasks/main.yml
index 7f2ea25c4..43b0ec366 100644
--- a/ansible/roles/download_l2fwd/tasks/main.yml
+++ b/ansible/roles/download_l2fwd/tasks/main.yml
@@ -20,6 +20,10 @@
get_url:
url: "{{ l2fwd_url }}"
dest: "{{ l2fwd_dest }}"
+ register: package_result
+ until: package_result is succeeded
+ retries: 10
+ delay: 5
- unarchive:
src: "{{ l2fwd_dest }}/{{ l2fwd_file }}"