使用 ansible 在 windows 中运行批处理文件 [英] Run a batch file in windows using ansible
本文介绍了使用 ansible 在 windows 中运行批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用我的控制节点 (CentOS) 运行远程 Windows 节点上的 run.bat 文件.是否可以?如果没有,还有其他选择吗?
I want to run a run.bat file present on my remote windows node using my control node (CentOS) . Is it possible? If not is there any alternative to do so?
推荐答案
看看这个部分 Windows 支持
所以你想要做的是创建一个看起来像这样的任务:
So what you want to do is create a task that looks similar to this:
- name: run simple script
script: run.bat
这篇关于使用 ansible 在 windows 中运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文