May 2018
Intermediate to advanced
554 pages
13h 51m
English
Another scenario is where you may need to run the ssh daemon on some specific port number rather than the default port number 22. Ansible also supports this scenario and uses the ansible_port parameter to the individual host in hosts.ini, as shown in the following code (in the example, the ssh daemon is running at 10022 on my-node-1):
my-master-1 ansible_ssh_host=10.128.0.2my-node-1 ansible_ssh_host=10.128.0.4 ansible_port=10022
Read now
Unlock full access