# Disable privilege escalation (become) and password in playbook

**URL:** <https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880>\
**Category:** Ansible Project\
**Created:** [March 31, 2015, 11:25am UTC](https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880 "2015-03-31T11:25:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgars](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@Edgars](https://forum.ansible.com/u/Edgars)\
**Post date:** [March 31, 2015, 11:25am UTC](https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880/1 "2015-03-31T11:25:41Z")

</div>

Hi

I have enabled privilege escalation in ansible.cfg file:

`[privilege_escalation] become = True become_ask_pass = True become_user = root become_method = su`

But now I have one playbook which must run on localhost with connection local and no passwords and now privilege escalations. How to configure that in playbook. Now I have this:

`

- hosts: localhost  
connection: local  
become: no  
sudo: no  
su: no  
`

It does not work, when I run playbook it requires it enter password. I tried this

`ask-pass: no`

But got:

> ERROR: ask-pass is not a legal parameter of an Ansible Play

Also become-ask-pass does not work.

Thanks  
Edgars

---

<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:** [March 31, 2015, 12:46pm UTC](https://forum.ansible.com/t/disable-privilege-escalation-become-and-password-in-playbook/17880/2 "2015-03-31T12:46:57Z")

</div>

This is not currently a feature, password prompting happens before  
playbook is loaded.
