Ansible 2.8.7 API 使用异常6: /wsman (('urllib3 : [Errno 111] Connection refused'))

#1. 异常信息

"msg": "ntlm: HTTPSConnectionPool(host='192.168.1.168', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))", "unreachable": true}

#2. 原因及解决

Ansible的Hosts文件中winRM端口明明写着5985,但执行Playbook却显示5986,所以应该是Eclispe缓存问题,改成其他端口试试再改回5985,解决。

你可能感兴趣的:(Ansible2.8.7)