Ansible modules are designed to be run in a non-interactive fashion, you won't receive the prompt on the controller as that's just not how Ansible works. You also won't be able to use expect for Windows as that is a Python module. Your best bet is to the use stdin option for win_command to send data over the stdin pipe. This is a very basic mechanism but if all you need to do is type 'y' then send y over stdin.
Thanks Jordan -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/eac53aec-3974-4545-9aa3-4e7458ac3c66%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.