# User input required while running command

**URL:** <https://forum.ansible.com/t/user-input-required-while-running-command/13240>\
**Category:** Ansible Project\
**Created:** [August 1, 2013, 2:37pm UTC](https://forum.ansible.com/t/user-input-required-while-running-command/13240 "2013-08-01T14:37:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrei\_Varanovich](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Andrei\_Varanovich](https://forum.ansible.com/u/Andrei_Varanovich)\
**Post date:** [August 1, 2013, 2:37pm UTC](https://forum.ansible.com/t/user-input-required-while-running-command/13240/1 "2013-08-01T14:37:54Z")

</div>

Hello,

I am new to ansible, and I have the following use case. The installer should be executed on the remote server. The installer itself involves some kind of wizard, where user input is required (e.g. one need to read and accept the licence).

To illustrate the use case, here is a part of my task:

- name: Run installer  
command: chdir=/tmp ./installer.rpm.bin

Is there any way to redirect the output of this command to my local console?

Thanks,  
Andrei

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 1, 2013, 10:49pm UTC](https://forum.ansible.com/t/user-input-required-while-running-command/13240/2 "2013-08-01T22:49:50Z")

</div>

You can feed the command an input file by switching the “command:” to “shell:” and feeding it an input file with “\< foo.txt”

Or alternatively, you could use something like expect, if so needed.
