
上QQ阅读APP看书,第一时间看更新
Need to change ssh port
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 inpidual 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.2
my-node-1 ansible_ssh_host=10.128.0.4 ansible_port=10022