使用Ansible在Windows中运行批处理文件 [英] Run a batch file in windows using ansible

查看:1135
本文介绍了使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆