1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4362 from skyl/do-until-typos

(docs) result is registered so would be used in the until param of a do-until loop
This commit is contained in:
James Cammarata 2013-10-03 13:36:02 -07:00
commit 24a3b6c76a

View file

@ -126,7 +126,7 @@ Sometimes you would want to retry a task until a certain condition is met. Here
- action: shell /usr/bin/foo
register: result
until: register.stdout.find("all systems go") != -1
until: result.stdout.find("all systems go") != -1
retries: 5
delay: 10
@ -141,7 +141,7 @@ can do that in the next task as follows::
- action: shell /usr/bin/foo
register: result
until: register.stdout.find("all systems go") != -1
until: result.stdout.find("all systems go") != -1
retries: 5
delay: 10
failed_when: result.attempts == 5