首页 > 解决方案 > 带有 Winrm credssp 的 Ansible 2.9.23 无法连接 Windows 服务器

问题描述

我已经2.9.23使用winrm credssp身份验证模块配置了 ansible。当我尝试连接 Windows 机器时,它会发出 unreachable消息。

如何解决和解决此问题?

ansible windows -i h  -m win_ping  
winhost01 | UNREACHABLE! => {
    "changed": false,
    "msg": "credssp: __enter__",
    "unreachable": true
}

Ansible 信息

ansible 2.9.23
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, May  8 2021, 09:11:34) [GCC 8.4.1 20210423 (Red Hat 8.4.1-2)]

标签: ansiblewinrmcredssp

解决方案


推荐阅读