Ansible管理windows服务器-windows配置

1,powershell版本高于3.0

2,打开PowerShell执行命令:set-executionpolicy -executionpolicy unrestricted

Ansible管理windows服务器-windows配置_第1张图片

3,执行winrm配置脚本,并查看配置:脚本下载地址:http://download.csdn.net/detail/lvmaolin1/9622083

Ansible管理windows服务器-windows配置_第2张图片

4,打开参数:allowunencrypted

Ansible管理windows服务器-windows配置_第3张图片


管理机尝试连接:

报错1:[Errno 111]connection refused

解决:执行配置脚本,参考步骤3

报错2:thespecified credentials were rejected by the server

解决:调整参数,参考步骤4





你可能感兴趣的:(操作系统)