mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clarified play_hosts/ansible_play_hosts docs
This commit is contained in:
parent
4650d8910e
commit
89f1cd6a8f
1 changed files with 3 additions and 2 deletions
|
@ -673,8 +673,9 @@ 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
|
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.
|
period, without the rest of the domain.
|
||||||
|
|
||||||
``play_hosts`` is available as a list of hostnames that are in scope for the current play. This may be useful for filling out templates with multiple hostnames or for injecting the list into the rules for a load balancer.
|
``ansible_play_hosts`` is the full list of all hosts still active in the current play.
|
||||||
``ansible_play_hosts`` is the same as ``play_hosts`` but includes all hosts in all ``serial`` batches, if you're not using ``serial`` it's the same as ``play_hosts``.
|
``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``).
|
||||||
|
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.
|
Don't worry about any of this unless you think you need it. You'll know when you do.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue