mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Document variables are reserved.
This commit is contained in:
parent
bcac289667
commit
b6a8d402c5
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ Magic Variables, and How To Access Information About Other Hosts
|
|||
````````````````````````````````````````````````````````````````
|
||||
|
||||
Even if you didn't define them yourself, ansible provides a few variables for you, automatically.
|
||||
The most important of these are 'hostvars', 'group_names', and 'groups'.
|
||||
The most important of these are 'hostvars', 'group_names', and 'groups'. Users should not use
|
||||
these names themselves as they are reserved.
|
||||
|
||||
Hostvars lets you ask about the variables of another host, including facts that have been gathered
|
||||
about that host. If, at this point, you haven't talked to that host yet in any play in the playbook
|
||||
|
|
Loading…
Add table
Reference in a new issue