doc update
This commit is contained in:
parent
0e749611ac
commit
daf2f49116
1 changed files with 13 additions and 10 deletions
|
@ -483,9 +483,12 @@ The results will have a new key "attempts" which will have the number of the ret
|
|||
The Do/Until does not take decision on whether to fail or pass the play when the maximum retries are completed, the user can
|
||||
can do that in the next task as follows:
|
||||
|
||||
- name: fail the play
|
||||
fail: msg=" This play fails as the foo exceeded maximum retries"
|
||||
fail_when: register.attempts >= 5
|
||||
- action: shell /usr/bin/foo
|
||||
register: result
|
||||
until: register.stdout.find("all systems go") != -1
|
||||
retries: 5
|
||||
delay: 10
|
||||
failed_when: result.attempts == 5
|
||||
|
||||
|
||||
Loops
|
||||
|
|
Loading…
Reference in a new issue