title: Ansible: Consider using 'become', 'become_method', and 'become_user' rather than running sudo
body: <p>When I run this:</p>
  
  <p><code>ansible host -u myuser -a "sudo su - otheruser -s /bin/bash"</code></p>
  
  <p>I get warning:</p>
  
  <pre><code>[WARNING]: Consider using 'become', 'become_method', and 'become_user' rather
  than running sudo
  
  host | SUCCESS | rc=0 &gt;&gt;
  </code></pre>
  
  <p>But what would be equivalent using <code>become</code> for <code>sudo su - otheruser -s /bin/bash</code>?</p>
  
  <p>I tried:</p>
  
  <pre><code>ansible host -u myuser --become --become-user otheruser -a "/bin/echo hello"
  </code></pre>
  
  <p>But I get:</p>
  
  <pre><code>host | FAILED! =&gt; {
      "changed": false,
      "module_stderr": "Shared connection to host closed.\r\n",
      "module_stdout": "sudo: a password is required\r\n",
      "msg": "MODULE FAILURE",
      "rc": 1
  }
  </code></pre>
  
  <p>P.S. Ansible version: 2.6.4</p>