May the expect module be useful for you? On Wed, Jun 26, 2019 at 11:32 PM sindhu shree <sindhushree...@gmail.com> wrote:
> Hi All, > I need help in executing batch file which has some prompts. > Am using following lines of script > > - name: run an executable with custom working dir > win_command: pisrvstop.bat /argument1 "/argument 2 with space" > args: > chdir: F:\Program Files\PI\adm > async: 120 > poll: 5 > > > it works fine but it will not answer for the prompts. How do i set the > answers for prompt? > > -- > 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/3e4238f5-b9c5-4bb5-bada-0c8e90de8ed1%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/3e4238f5-b9c5-4bb5-bada-0c8e90de8ed1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAA3McK_sR_ABkdek0hy6tiYWAATbmwPe%2Bt4aFbnk50vbQ8baJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.