我已建立与管理器主机的连接,我可以使用管理器使用$ansible -m ping host
来通过Ansible ping主机,而无需输入密码即可从管理器登录主机。
输出为:
192.168.1.107 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 192.168.1.107 port 22: Connection timed out\r\n",
"unreachable": true
}