From 32d1a8bace0dfad1a15e4687e91dff79f8538a78 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 22 Nov 2018 10:46:16 +0000 Subject: [PATCH] Retry adding custom repos until success Previously we checked for false in the result. The behavior of Ansible has probably changed, as failed is always in the result dictionary - just with the value "false". Tested with Ansible 2.5.11. Change-Id: Idfa2f33dd6641031ea8a287d74b6dbbfa578c9ab (cherry picked from commit a2dd79f8b100384ea83c7835688a5795eea90ba6) --- ansible/roles/yum/tasks/custom_repo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/yum/tasks/custom_repo.yml b/ansible/roles/yum/tasks/custom_repo.yml index 355b346bc..9edcbd661 100644 --- a/ansible/roles/yum/tasks/custom_repo.yml +++ b/ansible/roles/yum/tasks/custom_repo.yml @@ -24,5 +24,5 @@ register: register_yum_command retries: 3 delay: 10 - until: "'failed' not in register_yum_command" + until: register_yum_command is success become: true