From 9e0966016ca6967872191e877f8724d66db49e40 Mon Sep 17 00:00:00 2001 From: Beto Rodriguez Date: Sat, 6 Jan 2024 15:09:47 -0600 Subject: [PATCH] Retry clonning repo --- roles/opcap_tool/tasks/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/opcap_tool/tasks/build.yml b/roles/opcap_tool/tasks/build.yml index 31bdeb1ee..57f412f77 100644 --- a/roles/opcap_tool/tasks/build.yml +++ b/roles/opcap_tool/tasks/build.yml @@ -3,6 +3,10 @@ ansible.builtin.git: repo: "{{ opcap_repo }}" dest: "{{ opcap_dir.path }}/opcap" + register: git_clone_result + until: git_clone_result is succeeded + retries: 6 + delay: 10 - name: "Use Golang container to build opcap" # Launching a container to build the GO bin Dir where the repo has been