ansible操作通过winrm协议windows,经过实践精简以下方法能快速配置,并能通过测试
更多文档参考:
- 支持的windows版本和环境要求 https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html
- winrm配置选项,本文选择credssp 认证,兼顾安全和简洁https://docs.ansible.com/ansible/latest/os_guide/windows_winrm.html
- windows模块https://galaxy.ansible.com/ui/repo/published/ansible/windows/
1:Windows配置WINRM
系统版本win10
以管理员权限运行Poweshell执行如下命令
# 允许执行Powershell脚本
Set-ExecutionPolicy

本文介绍了如何在Windows10系统上配置WINRM以支持CredSSP认证,并利用Ansible进行远程管理,包括配置主机清单、安装PyWinRM模块、执行命令以及使用playbook安装7Z工具。
最低0.47元/天 解锁文章
1006

被折叠的 条评论
为什么被折叠?



