# Installation task that requires feedback from the install

**URL:** <https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 23, 2013, 3:06pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860 "2013-05-23T15:06:01Z")\
**Posts on this page:** 9\
**Page:** 1

<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:** [May 23, 2013, 3:06pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/1 "2013-05-23T15:06:01Z")

</div>

This seems to have a non-interactive option.

[http://www.modrails.com/documentation/Users%20guide%20Nginx.html#\_non\_interactive\_automatic\_headless\_installs\_or\_upgrades](http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_non_interactive_automatic_headless_installs_or_upgrades)

---

<div class="post-metadata">

**Author:** ![James\_Jelinek](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@James\_Jelinek](https://forum.ansible.com/u/James_Jelinek)\
**Post date:** [May 23, 2013, 3:08pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/2 "2013-05-23T15:08:30Z")

</div>

Michael,

Thanks for the quick reply. I think the passenger-install-nginx-module was a poor example. What if there was an install or package that required interactive answers but did not have a headless option? How would one handle that in Ansible?

Btw, so far I’m loving it. It’s much easier to get things done than in Chef/Puppet. So far I don’t see any limitations but again I’m just getting started.

Thanks for all your help.

-James  
@jamesjelinek

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [May 23, 2013, 3:09pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/3 "2013-05-23T15:09:19Z")

</div>

- name: Build nginx w passenger  
shell: passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx creates=/opt/nginx

---

<div class="post-metadata">

**Author:** ![James\_Jelinek](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@James\_Jelinek](https://forum.ansible.com/u/James_Jelinek)\
**Post date:** [May 23, 2013, 3:11pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/4 "2013-05-23T15:11:49Z")

</div>

Awesome, thanks!

Would you mind sharing your full rails install playbook with me? You can email me directly if you like.

Thanks!  
-James

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [May 23, 2013, 3:16pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/5 "2013-05-23T15:16:25Z")

</div>

this is it, i have a few more tasks but they have to do with custom stuff for our apps

[http://pastebin.com/3aUU8gLY](http://pastebin.com/3aUU8gLY)

---

<div class="post-metadata">

**Author:** ![James\_Jelinek](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@James\_Jelinek](https://forum.ansible.com/u/James_Jelinek)\
**Post date:** [May 23, 2013, 3:21pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/6 "2013-05-23T15:21:04Z")

</div>

This is great, I’m going to bookmark it. Thanks Brian!

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [May 23, 2013, 3:25pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/7 "2013-05-23T15:25:25Z")

</div>

I need to cleanup, but i’ll add this and more to my github ansible-pb repo.

---

<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:** [May 23, 2013, 3:26pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/8 "2013-05-23T15:26:38Z")

</div>

If something goes interactive and can only be done that way, you would probably have to use expect.

[http://en.wikipedia.org/wiki/Expect](http://en.wikipedia.org/wiki/Expect)

---

<div class="post-metadata">

**Author:** ![James\_Jelinek](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@James\_Jelinek](https://forum.ansible.com/u/James_Jelinek)\
**Post date:** [May 23, 2013, 3:28pm UTC](https://forum.ansible.com/t/installation-task-that-requires-feedback-from-the-install/12860/9 "2013-05-23T15:28:05Z")

</div>

That’s what I figured, luckily most packages have headless installs and options.

Thanks again, Michael.
