From 1e1a943a6e065786049161eb6982b3c7e9dc1364 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 20 Dec 2013 11:37:38 -0600 Subject: [PATCH] Fix rst warnings in playbooks_loops.rst --- docsite/rst/playbooks_loops.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docsite/rst/playbooks_loops.rst b/docsite/rst/playbooks_loops.rst index 081f5308cc0..cb766e5d7fa 100644 --- a/docsite/rst/playbooks_loops.rst +++ b/docsite/rst/playbooks_loops.rst @@ -316,14 +316,14 @@ As you can see the formatting of packages in these lists is all over the place. That's how! -.. _writing_your_own_iterators: +.. _using_register_with_a_loop: Using register with a loop `````````````````````````` When using ``register`` with a loop the data strucutre placed in the variable during a loop, will contain a ``results`` attribute, that is a list of all responses from the module. -Here is an example of using ``register`` with ``with_items`` +Here is an example of using ``register`` with ``with_items``:: - shell: echo "{{ item }}" with_items: @@ -378,6 +378,8 @@ Subsequent loops over the registered variable to inspect the results may look li when: item.rc != 0 with_items: echo.results +.. _writing_your_own_iterators: + Writing Your Own Iterators ``````````````````````````