# stuck on "Missing become password"

**URL:** <https://forum.ansible.com/t/stuck-on-missing-become-password/19847>\
**Category:** Ansible Project\
**Created:** [November 24, 2015, 11:34pm UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847 "2015-11-24T23:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Thacker](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Post date:** [November 24, 2015, 11:34pm UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847/1 "2015-11-24T23:34:03Z")

</div>

Hello  
I’m trying to run a playbook that will login as user ansible and then sudo to root to make configurations. I have a sudo entry that will allow root without password. The playbook looks like this:

---

<div class="post-metadata">

**Author:** ![Rob\_Wilkerson](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@Rob\_Wilkerson](https://forum.ansible.com/u/Rob_Wilkerson)\
**Post date:** [November 25, 2015, 12:36am UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847/2 "2015-11-25T00:36:23Z")

</div>

Try replacing become\_user: root with:

become\_method: sudo

That may work better.

---

<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:** [November 25, 2015, 12:53am UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847/3 "2015-11-25T00:53:50Z")

</div>

become\_user defaults to root, no need to specify, same with become\_method: sudo

can you run with -vvvv and show the output? also what ansible version?  
OSs involved?

---

<div class="post-metadata">

**Author:** ![Dave\_Thacker](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Post date:** [November 25, 2015, 2:32pm UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847/4 "2015-11-25T14:32:25Z")

</div>

> become\_user defaults to root, no need to specify, same with become\_method: sudo
> 
> can you run with -vvvv and show the output? also what ansible version?  
> OSs involved?

Thanks for your help, The OS is Oracle Linux 6.7. This is a run with -vvvv and the identical playbook.

[ansible@devansible01 playbooks]$ ansible-playbook -vvvv dave\_test.yml

PLAY [10.53.153.32] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<10.53.153.32\> ESTABLISH CONNECTION FOR USER: ansible  
\<10.53.153.32\> REMOTE\_MODULE setup  
\<10.53.153.32\> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r” -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 10.53.153.32 /bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044 && echo $HOME/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044’  
\<10.53.153.32\> PUT /tmp/tmp6GajGq TO /home/ansible/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044/setup  
\<10.53.153.32\> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r” -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 10.53.153.32 /bin/sh -c ‘sudo -k && sudo -H -S -p “[sudo via ansible, key=tegibnqlmaxkmlsnfbhesmbwdtrirnci] password: " -u root /bin/sh -c '”’“‘echo BECOME-SUCCESS-tegibnqlmaxkmlsnfbhesmbwdtrirnci; LANG=C LC\_CTYPE=C /usr/bin/python /home/ansible/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044/setup; rm -rf /home/ansible/.ansible/tmp/ansible-tmp-1448461765.18-146079134487044/ \>/dev/null 2\>&1’”‘"’’  
fatal: [10.53.153.32] =\> Missing become password

TASK: [create zabbix group] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
FATAL: no hosts matched or all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/home/ansible/dave\_test.retry

10.53.153.32 : ok=0 changed=0 unreachable=1 failed=0

Thanks! Dave

---

<div class="post-metadata">

**Author:** ![Dave\_Thacker](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Dave\_Thacker](https://forum.ansible.com/u/Dave_Thacker)\
**Post date:** [November 25, 2015, 2:42pm UTC](https://forum.ansible.com/t/stuck-on-missing-become-password/19847/5 "2015-11-25T14:42:01Z")

</div>

> become\_user defaults to root, no need to specify, same with become\_method: sudo
> 
> can you run with -vvvv and show the output? also what ansible version?  
> OSs involved?

Sorry, omiited the ansible version. We’re running 1.9.2

DT
