# become\_password and ansibe variable

**URL:** <https://forum.ansible.com/t/become-password-and-ansibe-variable/37141>\
**Category:** Ansible Project\
**Created:** [September 25, 2022, 3:27pm UTC](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141 "2022-09-25T15:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Django](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Django](https://forum.ansible.com/u/Django)\
**Post date:** [September 25, 2022, 3:27pm UTC](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141/1 "2022-09-25T15:27:57Z")

</div>

Hello,

I would like to process the become\_password in a playbook, which I request with the parameter '-K' when calling ansible-playbook.

Is there a variable that Ansible automatically populates with the entered value for the become\_password? Or can I pass this to a variable as easily as possible.

Any hint is welcome!

ttyl  
Django

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [September 26, 2022, 1:48pm UTC](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141/2 "2022-09-26T13:48:53Z")

</div>

No, this is specifically avoided.

---

<div class="post-metadata">

**Author:** ![Django](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Django](https://forum.ansible.com/u/Django)\
**Post date:** [September 26, 2022, 2:26pm UTC](https://forum.ansible.com/t/become-password-and-ansibe-variable/37141/3 "2022-09-26T14:26:43Z")

</div>

O.K., no problem, so I ask 'bout that password while the initial ansible-configuration done by my ansible-playbook. Then it will be stored in my inventory and everything works fine as ecpected.

Thanx 4 help!
