Ansible for windows

Hi,

I wrote an autoit exe which will launch out application,test its functionality and store the logs in results.txt

I want ansible to copy the autoit exe, a config file and our application to a vm amd launch the autoit exe.

How to launch this and wait till it completes and copy the file back.?

And also, I don’t want the ansible to wait till the exe completes, it should come back after some time and check whether it completed or not.So that, it can check other machines instead of waiting at first machine.

How to achieve this??

Let me know if you find the solutions for this

Not yet

Did you try using async to run the command? I think you should be able to use async with win_shell module. The other steps you describe sound like they could be done using win_copy module and fetch module to retrieve the test results.

See https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html for information about async features of ansible.

Hope this helps,

Jon