Ansible for windows

40 views
Skip to first unread message

uday kiran

unread,
Aug 21, 2019, 1:18:25 PM8/21/19
to ansible...@googlegroups.com
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??

Barun kumar

unread,
Sep 1, 2019, 9:28:37 AM9/1/19
to ansible...@googlegroups.com
Let me know if you find the solutions for this 

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABGhiLRsj%2BKscTu6cH%3DMrqT1R-3nFW_4WQ7w%3Dsjj2MZO5zOQkg%40mail.gmail.com.

uday kiran

unread,
Sep 1, 2019, 9:33:57 AM9/1/19
to ansible...@googlegroups.com

J Hawkesworth

unread,
Sep 2, 2019, 12:58:04 PM9/2/19
to Ansible Project
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

Reply all
Reply to author
Forward
0 new messages