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 a2dd79f8b1)
This commit is contained in:
Will Szumski 2018-11-22 10:46:16 +00:00 committed by Mark Goddard
parent 70bde2115a
commit 32d1a8bace
1 changed files with 1 additions and 1 deletions

View File

@ -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