# Where to put vars\_prompt in a role?

**URL:** <https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370>\
**Category:** Ansible Project\
**Created:** [September 28, 2015, 2:37pm UTC](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370 "2015-09-28T14:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdelaporte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jdelaporte/32/366_2.png) [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Post date:** [September 28, 2015, 2:37pm UTC](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370/1 "2015-09-28T14:37:30Z")

</div>

I want a role to have a vars\_prompt. Can I put it in the tasks/main.yml, or does it have to be in the playbook that runs the role?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 28, 2015, 2:38pm UTC](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370/2 "2015-09-28T14:38:23Z")

</div>

not supported, use pause module

---

<div class="post-metadata">

**Author:** ![jdelaporte](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jdelaporte/32/366_2.png) [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Post date:** [September 28, 2015, 2:44pm UTC](https://forum.ansible.com/t/where-to-put-vars-prompt-in-a-role/19370/3 "2015-09-28T14:44:19Z")

</div>

Thanks for the quick update!

Joanna
