【发布时间】:2025-12-26 14:55:12
【问题描述】:
从announcement 开始,我可以使用 ansible 在 Azure Cloud Shell 中列出我的 Azure 基础架构。
我也想在 Windows 机器上使用它。我在本地安装了 winrm,因为似乎不支持全局。
pip install "pywinrm>=0.2.2" --user
据此我了解软件包已正确安装
pywinrm (0.3.0)
requests (2.18.4)
xmltodict (0.11.0)
...
然后我运行,the proper credentials 一个 win ping 但 ansible 抱怨 WinRM 不可用。
ansible -i workspace/azure_rm.py -m win_ping DC-01
是否可以在带有 windows 主机的云 shell 中运行 ansible?
【问题讨论】:
标签: azure pip ansible winrm azure-cloud-shell