--- - hosts: kspace become: yes become_user: root become_method: sudo tasks: - name: ping ping: ...