# Prompt question again.  Thanks

**URL:** <https://forum.ansible.com/t/prompt-question-again-thanks/16521>\
**Category:** Ansible Project\
**Created:** [October 15, 2014, 6:02pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521 "2014-10-15T18:02:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [October 15, 2014, 6:02pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/1 "2014-10-15T18:02:10Z")

</div>

Between my lack of Ansible mastery and its kind of syntax, rare is the day I don’t get stuck…

Either the syntax is not intuitive or I have no intuition.

I am trying to do something very simple and it seems very complicated in Ansible. I hope it just seems so.

I figure out what release to deploy in a play and then confirm the release is correct, if not all stops, if correct run with the wind…

So:

If I put vars\_prompt between the tasks it gives an error. Where can the prompt go then? When is code position indicative of order of execution and when not?

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [October 15, 2014, 6:16pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/2 "2014-10-15T18:16:09Z")

</div>

vars\_prompt goes on the play level, not the task level. It's not a  
task and you don't have control over when the prompt happens. It will  
ask you before the play starts to answer any questions in the prompt.

Just a helpful way to think about what can go in the task list: Is it  
a module? (  
[http://docs.ansible.com/list\_of\_all\_modules.html](http://docs.ansible.com/list_of_all_modules.html)). If not, then it  
can't be a task.

---

<div class="post-metadata">

**Author:** ![Tiglath](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Post date:** [October 15, 2014, 7:12pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/3 "2014-10-15T19:12:50Z")

</div>

Good rule. Thanks

---

<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:** [October 17, 2014, 12:46am UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/4 "2014-10-17T00:46:49Z")

</div>

Look at the pause module for this functionality

Brian Coca

---

<div class="post-metadata">

**Author:** ![Michael\_Peters](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Post date:** [October 17, 2014, 1:54pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/5 "2014-10-17T13:54:26Z")

</div>

I could be wrong, but from my understanding the pause module won't  
take input. It will give a prompt, but that just waits for enter to be  
pressed right?

---

<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:** [October 17, 2014, 10:22pm UTC](https://forum.ansible.com/t/prompt-question-again-thanks/16521/6 "2014-10-17T22:22:34Z")

</div>

You can give input which is available through registered variables
