]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
users: fixes bug related to ssh key update retries 114/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 18 Aug 2015 16:41:22 +0000 (11:41 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 18 Aug 2015 16:49:53 +0000 (11:49 -0500)
When updating ssh keys for users we implemented a do until loop that
will account for transient issues when downloading the key from github.
The problem was that if the url fails then the var we were registering
was never created and the 'until' block errors out trying to check it.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/users/tasks/main.yml

index 12f266c8a1425ae5f7665532301675d33f54fd06..55844e7541c0e35a44b8ddea34e64c76d8af9564 100644 (file)
@@ -45,7 +45,7 @@
   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'
+  until: ssh_key_update|success
   retries: 3
   delay: 5
   tags: