Ansible become method
<p>Is it possible to use two <code>ansible_become:</code> inside one task in an Ansible playbook</p>

<p>I don't have <code>Root</code> access on the server I'm developing for, but I have been granted <code>pbrun su - USER</code>. The USER has <strong>no password</strong>. From my understanding you can only one declare one <code>ansible_become:</code> inside a task. </p>

<p>Has anyone ever encountered this, or is there a work around??</p>

<p><strong>code</strong></p>

<pre><code>- name: change user and run shell
  become: yes
  become_method: pbrun su
  become_user: USER
</code></pre>

<p>Thanks,</p>

<p><br> Frostie</p>