--- - name: Start gemserv hosts: gemserv tasks: - name: Start gemserv become: true become_user: root become_method: sudo ansible.builtin.command: whoami