From afbbeac70f98dcc755717063df8913de571b1adb Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 18 Aug 2015 11:41:22 -0500 Subject: [PATCH] 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 --- roles/users/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3