ansible Become (Privilege Escalation) Only in a task


Example

- name: Run script as foo user
  command: bash.sh
  become: true
  become_user: foo