From 1f2047cc39955c9e7f37eab137649c56b73ed61f Mon Sep 17 00:00:00 2001 From: Skylar Saveland Date: Thu, 3 Oct 2013 13:28:29 -0700 Subject: [PATCH] (docs) result is registered so would be used in the until param of a do-until loop --- docsite/latest/rst/playbooks_loops.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docsite/latest/rst/playbooks_loops.rst b/docsite/latest/rst/playbooks_loops.rst index 73f4c1be553..183f9946716 100644 --- a/docsite/latest/rst/playbooks_loops.rst +++ b/docsite/latest/rst/playbooks_loops.rst @@ -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