mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
parent
8cdf002f2a
commit
86ea21a73d
3 changed files with 10 additions and 1 deletions
|
@ -673,8 +673,14 @@ be useful for when you don't want to rely on the discovered hostname ``ansible_h
|
|||
reasons. If you have a long FQDN, ``inventory_hostname_short`` also contains the part up to the first
|
||||
period, without the rest of the domain.
|
||||
|
||||
``play_hosts`` has been deprecated in 2.2, it was the same as the new ``ansible_play_batch`` variable.
|
||||
|
||||
.. versionadded:: 2.2
|
||||
``ansible_play_hosts`` is the full list of all hosts still active in the current play.
|
||||
``play_hosts`` is available as a list of hostnames that are in scope for the current 'batch' of the play. The batch size is defined by ``serial``, when not set it is equivalent to the whole play (making it the same as ``ansible_play_hosts``).
|
||||
.. versionadded:: 2.2
|
||||
``ansible_play_batch`` is available as a list of hostnames that are in scope for the current 'batch' of the play. The batch size is defined by ``serial``, when not set it is equivalent to the whole play (making it the same as ``ansible_play_hosts``).
|
||||
|
||||
|
||||
These vars may be useful for filling out templates with multiple hostnames or for injecting the list into the rules for a load balancer.
|
||||
|
||||
Don't worry about any of this unless you think you need it. You'll know when you do.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue