]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Retry authorized_keys updates 86/head
authorZack Cerza <zack@redhat.com>
Tue, 21 Jul 2015 20:18:44 +0000 (14:18 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 21 Jul 2015 21:28:26 +0000 (15:28 -0600)
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 <zack@redhat.com>
roles/users/tasks/main.yml

index 578cee97c0b69a326dd84074faf43b2790d0f67c..714cd1dbed0eebc9739d887adae58f1c18b0e629 100644 (file)
     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