Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a batch file in windows using ansible

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?

like image 732
jugal Avatar asked Sep 25 '15 06:09

jugal


1 Answers

Take a look at this section Windows Support

So what you want to do is create a task that looks similar to this:

- name: run simple script
  script: run.bat
like image 107
Vor Avatar answered Sep 19 '22 12:09

Vor