# issue in switching user from playbook module

**URL:** <https://forum.ansible.com/t/issue-in-switching-user-from-playbook-module/37878>\
**Category:** Ansible Developer\
**Created:** [April 13, 2023, 6:15am UTC](https://forum.ansible.com/t/issue-in-switching-user-from-playbook-module/37878 "2023-04-13T06:15:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anish\_kumar1](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anish_kumar1/32/5258_2.png) [@Anish\_kumar1](https://forum.ansible.com/u/Anish_kumar1)\
**Post date:** [April 13, 2023, 6:15am UTC](https://forum.ansible.com/t/issue-in-switching-user-from-playbook-module/37878/1 "2023-04-13T06:15:20Z")

</div>

I am running a playbook to change the user but i am getting error as FAILED! =\> {“msg”: "Timeout (12s) waiting for privilege  
escalation prompt: "}  
I am able to run this as manual command on server but cant able to login

name: Test me  
shell : ‘whoami’  
become: true  
become\_method: su  
become\_user: root  
gather\_facts: no  
ansible\_become\_pass: “r00t”  
delegate to : “{{serevr1}}”
