title: Ansible become "command not allowed"
body: <p>I use ansible 2.1.1.0 on redhat 6.2 OS.</p>
  
  <p>I try to launch playbooks with Become method but it does'nt work.
  On my ansible host, the task messages display is :</p>
  
  <pre><code>fatal: [hostname]: FAILED! =&gt; {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "sudo: a password is required\r\n", "msg": "MODULE FAILURE", "parsed": false}
  </code></pre>
  
  <p>There is no password on the remote host, and, when i go to the secure log, there is this error :    </p>
  
  <pre><code>Aug 17 16:02:04 hostname sudo:   user : command not allowed ; TTY=pts/1 ; PWD=/home/user ; USER=root ; COMMAND=/bin/sh -c echo BECOME-SUCCESS-dwxvazrobemucw; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /users/user/.ansible/tmp/ansible-tmp-1502978523.81-254571587064931/command; rm -rf "/users/user/.ansible/tmp/ansible-tmp-1502978523.81-254571587064931/" &gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>When I try to launch playbook without become method but with sudo in command line, there is no error, the command works and this message appears in /var/log/secure :</p>
  
  <pre><code>Aug 17 16:03:02 hostname sudo:   user : TTY=pts/1 ; PWD=/home/user ; USER=root ; COMMAND=command_I_used
  </code></pre>
  
  <p>I use RSA key method, without passphrase and this problem appears with all module I had test.</p>
  
  <p>Thanks for reading,<br/>
  Valentin.</p>