- hosts: all gather_facts: no tasks: - command: whoami become_user: testing - block: - command: whoami become_user: testing