From 77982760c4d1b13c5a6938859fc154e122cb2693 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 21 Jul 2015 14:18:44 -0600 Subject: [PATCH] Retry authorized_keys updates http://tracker.ceph.com/issues/12380 We're seeing transient issues connecting to githubusercontent.com. This commit will cause ansible to retry three times with a five-second delay between tries. Hopefully that's good enough. Signed-off-by: Zack Cerza --- roles/users/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 578cee97..714cd1db 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -43,5 +43,10 @@ user: "{{ item.name }}" key: "{{ item.key }}" with_items: managed_users|list + managed_admin_users|list + # Register and retry to work around transient githubusercontent.com issues + register: ssh_key_update + until: ssh_key_update.state == 'present' + retries: 3 + delay: 5 tags: - pubkeys -- 2.47.3