# Using ansible\_ssh\_pass variable set by ask\_pass in a playbook?

**URL:** <https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931>\
**Category:** Ansible Project\
**Created:** [April 8, 2015, 2:52pm UTC](https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931 "2015-04-08T14:52:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandor\_Zeestraten](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@Sandor\_Zeestraten](https://forum.ansible.com/u/Sandor_Zeestraten)\
**Post date:** [April 8, 2015, 2:52pm UTC](https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931/1 "2015-04-08T14:52:09Z")

</div>

Hi, is there a way to reuse the ansible\_ssh\_pass variable in playbook when set by ask\_pass in the configuration file or via CLI?

As I’m already using ask\_pass and ask\_sudo\_pass in the config for the SSH connection, I’d like to use the password credentials from those prompts further in a playbook.

Regards,  
SZ

---

<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:** [April 9, 2015, 12:53pm UTC](https://forum.ansible.com/t/using-ansible-ssh-pass-variable-set-by-ask-pass-in-a-playbook/17931/2 "2015-04-09T12:53:49Z")

</div>

passwords are not something we expose to the plays, I'm not sure we  
would want to as this can open concerns, specially with 3rd party  
roles you don't audit for changes (new task publishes password in irc  
....).
