Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ansible ssh on different port

# Easy way, edit /etc/ansible/hosts:

[my_server]
ssdnodes:54321
and you can test it by issuing a ping:

ansible ssdnodes -m ping

#and the response would be:

ssdnodes | SUCCESS => {
    "changed": false,
    "ping": "pong"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ansible #ssh #port
ADD COMMENT
Topic
Name
8+4 =