<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 2.0.0.2<br>
config file =<br>
configured module search path = Default w/o overrides</p>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">Nothing particular</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Running from OSX 10.11.2, ansible installed via homebrew<br>
Target OS, up to date debian wheezy</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">It seems that we can't use become (default sudo adapter) without defining a sudo password.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Just run</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible foo -a &quot;whoami&quot; -b"><pre class="notranslate"><code class="notranslate">ansible foo -a "whoami" -b
</code></pre></div>
<p dir="auto">Or</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible foo -a &quot;whoami&quot; -s"><pre class="notranslate"><code class="notranslate">ansible foo -a "whoami" -s
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo | SUCCESS | rc=0 &gt;&gt;
root"><pre class="notranslate"><code class="notranslate">foo | SUCCESS | rc=0 &gt;&gt;
root
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo | FAILED | rc=0 &gt;&gt;
ERROR! Missing sudo password"><pre class="notranslate"><code class="notranslate">foo | FAILED | rc=0 &gt;&gt;
ERROR! Missing sudo password
</code></pre></div>
<p dir="auto">Of course, sudo without password is well configured on the target machine, and everything is ok with ansible 1.9</p>
<p dir="auto">Hi in the 2.0.0.1 version.</p>
<p dir="auto">running ansible-galaxy --help provides the usage instructions and exits with an exit code of 5</p>
<p dir="auto">This is not an error as you are just looking for help.</p>
<p dir="auto">Unfortunately this kills vagrants ansible-local provisioner.</p>
<p dir="auto"><strong>LOCAL</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 1.9.4
  configured module search path = None
$ ansible-galaxy --help
Usage: ansible-galaxy [init|info|install|list|remove] [--help] [options] ...
 Options:
  -h, --help  show this help message and exit
 See 'ansible-galaxy &lt;command&gt; --help' for more information on a specific command.
$ echo $?
0"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 1.9.4
  configured module search path = None
$ ansible-galaxy --help
Usage: ansible-galaxy [init|info|install|list|remove] [--help] [options] ...
 Options:
  -h, --help  show this help message and exit
 See 'ansible-galaxy &lt;command&gt; --help' for more information on a specific command.
$ echo $?
0
</code></pre></div>
<p dir="auto"><strong>2.0.0.1</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.0.0.1
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
$ ansible-galaxy --help
Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...

Options:
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection
                 debugging)
  --version      show program's version number and exit
ERROR! Missing required action
$ echo $?
5"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.0.0.1
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
$ ansible-galaxy --help
Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...

Options:
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection
                 debugging)
  --version      show program's version number and exit
ERROR! Missing required action
$ echo $?
5
</code></pre></div>
<p dir="auto">Not your problem but this is how vagrant checks if ansible is installed.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: ansible-galaxy --help &amp;&amp; ansible-playbook --help (sudo=false)
DEBUG ssh: stderr: ERROR! Missing required action

DEBUG ssh: stdout: Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...

Options:
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection
                 debugging)
  --version      show program's version number and exit

DEBUG ssh: Exit status: 5"><pre class="notranslate"><code class="notranslate">DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: ansible-galaxy --help &amp;&amp; ansible-playbook --help (sudo=false)
DEBUG ssh: stderr: ERROR! Missing required action

DEBUG ssh: stdout: Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ...

Options:
  -h, --help     show this help message and exit
  -v, --verbose  verbose mode (-vvv for more, -vvvv to enable connection
                 debugging)
  --version      show program's version number and exit

DEBUG ssh: Exit status: 5
</code></pre></div>