Ansible win_command

17 views
Skip to first unread message

sindhu shree

unread,
Jun 27, 2019, 12:32:44 AM6/27/19
to Ansible Development
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?
Reply all
Reply to author
Forward
0 new messages