mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add a note about hosts being ok in multiple groups.
This commit is contained in:
@@ -35,6 +35,9 @@ The format for /etc/ansible/hosts is an INI format and looks like this::
|
||||
The things in brackets are group names, which are used in classifying systems
|
||||
and deciding what systems you are controlling at what times and for what purpose.
|
||||
|
||||
It is ok to put systems in more than one group, for instance a server could be both a webserver and a dbserver.
|
||||
If you do, note that variables will come from all of the groups they are a member of, and variable precedence is detailed in a later chapter.
|
||||
|
||||
If you have hosts that run on non-standard SSH ports you can put the port number
|
||||
after the hostname with a colon. Ports listed in your SSH config file won't be used,
|
||||
so it is important that you set them if things are not running on the default port::
|
||||
|
||||
Reference in New Issue
Block a user