# prompt\_vars again / multiple times

**URL:** <https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904>\
**Category:** Ansible Project\
**Created:** [November 30, 2015, 10:09pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904 "2015-11-30T22:09:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Steinbach](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Post date:** [November 30, 2015, 10:09pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904/1 "2015-11-30T22:09:58Z")

</div>

Is there a possibility to prompt a variable again? Currently if you prompt a variable in the first play, you can’t prompt for the same variable in the second play. Here is my (example) playbook:

`

- name: setup ansible-ci agents  
hosts: jenkins-agents  
vars\_prompt:
- name: ansible\_become\_pass  
prompt: “SUDO password for agents machine”  
private: yes

roles:

- agent

- name: install ansible-ci server  
hosts: jenkins-server  
vars\_prompt:

- name: ansible\_become\_pass  
prompt: “SUDO password for server”  
private: yes

roles:

- ansible-ci

`

I don’t know why, but I am just getting ask for the var of the first play and not a second time.

---

<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:** [November 30, 2015, 10:17pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904/2 "2015-11-30T22:17:48Z")

</div>

confirmed, works if the var name are different, but is skipped if they  
are the same, probably the culprit is the list of 'already prompted  
for' being cached across plays.

---

<div class="post-metadata">

**Author:** ![Thomas\_Steinbach](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Post date:** [November 30, 2015, 10:31pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904/3 "2015-11-30T22:31:34Z")

</div>

Thank you for quick reply and investigation. Have you created a bug ticket I can subscribe to?

---

<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:** [November 30, 2015, 10:41pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904/4 "2015-11-30T22:41:51Z")

</div>

no, feel free to do so, i have a 'fix' but I'm not sure what it  
breaks, so checking with other devs.

---

<div class="post-metadata">

**Author:** ![Thomas\_Steinbach](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Post date:** [November 30, 2015, 11:09pm UTC](https://forum.ansible.com/t/prompt-vars-again-multiple-times/19904/5 "2015-11-30T23:09:44Z")

</div>

ok. here is the related ticket - [https://github.com/ansible/ansible/issues/13363](https://github.com/ansible/ansible/issues/13363)
