From: Andrew Schoen Date: Tue, 18 Aug 2015 16:41:22 +0000 (-0500) Subject: users: fixes bug related to ssh key update retries X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=afbbeac70f98dcc755717063df8913de571b1adb;p=ceph-cm-ansible.git users: fixes bug related to ssh key update retries 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 --- diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 12f266c8..55844e75 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -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: