Commit daf2f491 by bennojoy

doc update

parent 0e749611
...@@ -483,9 +483,12 @@ The results will have a new key "attempts" which will have the number of the ret ...@@ -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 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: can do that in the next task as follows:
- name: fail the play - action: shell /usr/bin/foo
fail: msg=" This play fails as the foo exceeded maximum retries" register: result
fail_when: register.attempts >= 5 until: register.stdout.find("all systems go") != -1
retries: 5
delay: 10
failed_when: result.attempts == 5
Loops Loops
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment