I want to run the run.bat file present in my remote node windows using my node control (CentOS). Is it possible? If not, is there an alternative?
Take a look at this section of Windows Support
So, you want to create a task that looks something like this:
- name: run simple script script: run.bat
This bat file must be inside the local system. How can I launch a bat from a remote machine? My requirement: I need to download MSI from the network and deploy it to the remote and run it using a batch file.
Save the script (batch file) to the management server. Ansible copies the script to the remote host and then runs it there. See the example below - it is assumed that the file is run.batstored in run.bat /tmp(not recommended) on your management server.
run.bat
/tmp
- name: execute batch script: /tmp/run.bat
Source: https://habr.com/ru/post/1608937/More articles:Кнопка "Включено" при загрузке в Dropzone - javascriptHow do strings end in C #? - stringPostgreSQL clause - GROUP BY - sqlOpenTok Video Call Issue when an app transitions from a background state to the foreground - iosConfirmation for email or phone number for the same text box in angularjs - javascriptHow to get MethodInfo for Enumerable.SequenceEqual - reflectionNeglecting a sheet with a single text field using an escape key - objective-cCore Spotlight Userinfo всегда пуст - iosTomEE startup problem - javaSignalR - multiple hubs - launch connections individually - javascriptAll Articles