我尝试为不同的系统编写 yml。
在 ansuble_os_family 和 ansible_distribution 中我没有看到 Windows。 我应该如何为 Windows 编写任务条件?
谢谢。
最佳答案
在 Windows 机器上 ansible_os_family
应该有值 Windows
。如果您的游戏不是这种情况,则似乎存在一些错误。也许您应该重新测试并确保您实际上是针对 Windows 机器。
关于windows - 对 Windows 的 ansible 支持在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41679604/