From: Zack Cerza Date: Tue, 21 Jul 2015 20:18:44 +0000 (-0600) Subject: Retry authorized_keys updates X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=77982760c4d1b13c5a6938859fc154e122cb2693;p=ceph-cm-ansible.git 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 --- diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 578cee9..714cd1d 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