diff options
author | René Moser <mail@renemoser.net> | 2017-08-23 07:49:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 07:49:32 +0200 |
commit | 6397e68bfdbc5097a6351168cdb97d1b6b943bb9 (patch) | |
tree | e88ff43f85890430f5b5f39f4edc326a16e8dc6f /docs/docsite/rst | |
parent | 4382216e104f8689554768dcf34196eeb8e9e8e6 (diff) | |
download | ansible-6397e68bfdbc5097a6351168cdb97d1b6b943bb9.tar.gz |
doc: replace play_hosts with ansible_play_batch (#28526)
Diffstat (limited to 'docs/docsite/rst')
-rw-r--r-- | docs/docsite/rst/playbooks_loops.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/docsite/rst/playbooks_loops.rst b/docs/docsite/rst/playbooks_loops.rst index 4dec34bb93..82d0732fd0 100644 --- a/docs/docsite/rst/playbooks_loops.rst +++ b/docs/docsite/rst/playbooks_loops.rst @@ -699,7 +699,7 @@ Looping over the inventory `````````````````````````` If you wish to loop over the inventory, or just a subset of it, there is multiple ways. -One can use a regular ``with_items`` with the ``play_hosts`` or ``groups`` variables, like this:: +One can use a regular ``with_items`` with the ``ansible_play_batch`` or ``groups`` variables, like this:: # show all the hosts in the inventory - debug: @@ -711,7 +711,7 @@ One can use a regular ``with_items`` with the ``play_hosts`` or ``groups`` varia - debug: msg: "{{ item }}" with_items: - - "{{ play_hosts }}" + - "{{ ansible_play_batch }}" There is also a specific lookup plugin ``inventory_hostnames`` that can be used like this:: |