I have installed ansible, configured my shh and the hosts in /etc/ansible/hosts file. I tried executing this playybook
# Checks the hosts provisioned by midrange
- name: Test su connecting as current user
- name: "sudo to configued user -- tstuser01"
it threw me the following error:
Internal Error: this module does not support running commands via 'sudo'