ping host with port code example
Example 1: ssh on specify port
ssh user@remotehostip -p XXX
Example 2: ansible ping with diferent port
[webservers]
web01.somedomain.com ansible_port=1234
ssh user@remotehostip -p XXX
[webservers]
web01.somedomain.com ansible_port=1234