Skip to content

Commit

Permalink
Improve consistency of loop documentation (ansible#55674)
Browse files Browse the repository at this point in the history
There were a series of sections with subheadings in the loop
documentation, but the most recent additions did not follow the same
pattern.
  • Loading branch information
larsks authored and acozine committed Apr 23, 2019
1 parent 79198ca commit a5cb47d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docsite/rst/user_guide/playbooks_loops.rst
Expand Up @@ -376,6 +376,8 @@ You can specify the name of the variable for each loop using ``loop_var`` with `

.. note:: If Ansible detects that the current loop is using a variable which has already been defined, it will raise an error to fail the task.

Extended loop variables
-----------------------
.. versionadded:: 2.8

As of Ansible 2.8 you can get extended loop information using the ``extended`` option to loop control. This option will expose the following information.
Expand All @@ -400,6 +402,8 @@ Variable Description
loop_control:
extended: yes

Accessing the name of your loop_var
-----------------------------------
.. versionadded:: 2.8

As of Ansible 2.8 you can get the name of the value provided to ``loop_control.loop_var`` using the ``ansible_loop_var`` variable
Expand Down

0 comments on commit a5cb47d

Please sign in to comment.