Hi, i have a question.
We have 100+ nomad agents running in a onprem environment. I need to migrate them to our aws cluster. New Config.hcl points to aws cluster
I created a nomad job that downloads the new config and overwrites the current which works fine, the issue is trying to restart the nomad service via nomad.
I tried to execute a powershell script as a separate task via nomad that will restart the service, with the idea that if nomad executes the ps1 file it will run independently in the background to restart the nomad service. But the service just remains in a stopped state. If i run the ps1 script directly on one of the servers it successfully restart the service.
I tried a .bat file as well.
Ps it works on linux with a .sh script
Any ideas for windows?