From dbdfbccb4d55307ad700f82842715a50e3f5b1e3 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 25 Jul 2016 11:52:30 -0600 Subject: [PATCH] Add a retry when cloning the keys repo Signed-off-by: Zack Cerza --- roles/users/tasks/update_keys.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/users/tasks/update_keys.yml b/roles/users/tasks/update_keys.yml index cb0bbbac..b93cdb97 100644 --- a/roles/users/tasks/update_keys.yml +++ b/roles/users/tasks/update_keys.yml @@ -16,6 +16,10 @@ when: keys_repo is defined connection: local run_once: true + register: clone_keys + until: clone_keys|success + retries: 5 + delay: 10 - name: Update authorized_keys using the keys repo authorized_key: -- 2.47.3