# How to set become pass for become\_method: su?

**URL:** <https://forum.ansible.com/t/how-to-set-become-pass-for-become-method-su/35508>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [July 14, 2021, 5:46pm UTC](https://forum.ansible.com/t/how-to-set-become-pass-for-become-method-su/35508 "2021-07-14T17:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Cheng](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Joey\_Cheng](https://forum.ansible.com/u/Joey_Cheng)\
**Post date:** [July 14, 2021, 5:46pm UTC](https://forum.ansible.com/t/how-to-set-become-pass-for-become-method-su/35508/1 "2021-07-14T17:46:18Z")

</div>

Hello folks,

I was using --ask-become-pass and it worked fine. But now I’m going to run multiple playbooks at one time so I’m going to include become pass in plaintext for each group. I tried “ansible\_become\_pass” in inventory file:

[group1]

xxx.xx.xx.xxx ansible\_user=ubuntu ansible\_become\_pass=xxx

But I got “Timeout (12s) waiting for privilege escalation prompt:” error. BTW, I’m using “become\_method: su”

Any hints on how to achieve this? Thanks!

Joey
