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:
parent
70bde2115a
commit
32d1a8bace
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue