Just a few things to note, you don't need to set the task directory become, become_method, become_user if you have set the vars as well. Variable > than task directives when it comes to precedence.
If the initial exe is then starting up another executable and exits immediately it makes sense that it wuld come back ok but then kill the WinRM session and subsequently all child processes, like the newly spawned installer. I would try and add 'async: 600' to the task to see if that works for you. Async slightly changes the type of session the module is run in and it may be enough to get things working for you but there's no guarantees. If I get some time I might try this out but I can't do it right now. Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.