mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'docsite' of git://github.com/arrfab/ansible into devel
This commit is contained in:
commit
fea6742a27
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ after the hostname with a colon.
|
||||||
|
|
||||||
four.example.com:5309
|
four.example.com:5309
|
||||||
|
|
||||||
|
You can also use other variables to specify your hosts (useful when using '-c ssh'). Suppose that you want to use in your inventory file the name four.example.com. That host has a sshd running on port 5309 (or have a firewall rule in front to redirect 5309->22) and is known in the DNS a four.example.org :
|
||||||
|
|
||||||
|
four.example.com ansible_ssh_port=5309 ansible_ssh_host=four.example.org
|
||||||
|
|
||||||
In 0.6 and later, if you have a lot of hosts following similar patterns you can do this rather than listing each hostname::
|
In 0.6 and later, if you have a lot of hosts following similar patterns you can do this rather than listing each hostname::
|
||||||
|
|
||||||
[webservers]
|
[webservers]
|
||||||
|
|
Loading…
Reference in a new issue