title: How to switch user from remote shell
body: <p>I am not able to switch user from remote shell.
  Also how can I pass password to remote shell.</p>
  
  <p>I tried with play book, command and shell tasks.
  But it's not working</p>
  
  <p>This is my code</p>
  
  <pre><code>- hosts: test1
    tasks:
      - name: Switch user
        shell: $(echo "{{ su - username }}")
        shell: $(echo "{{ 'password' }}”)
  </code></pre>