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
This commit is contained in:
parent
016d23aa83
commit
a2dd79f8b1
@ -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…
x
Reference in New Issue
Block a user