title: how to define login user and become root in playbook
body: <p>my loginuser is user1 and i want to execute the playbook with root. how can i do this. if i use in cmdline it does not work like this</p>
  <pre><code>ansible-playbook main.yaml -i hosts --user=git -k --become-user=root --ask-become-pass --become-method=su
  </code></pre>
  <p>Please tell me how to implement this.</p>
  <pre class="lang-yaml prettyprint-override"><code>name: Install and Configure IEM
  hosts: rhel
  ansible_become: yes
  ansible_become_method: su
  ansible_become_user: root
  ansible_become_pass: passw0rd
  tasks:
   
   - name: Creating masthead file path
     file: path=/etc/opt/BESClient state=directory
     
   - name: Creating install directory
  </code></pre>