Ansible comes with all the functionality of it’s much older relative Python Fabric (remember “fabfiles”) when using “ad-hoc” commands.
ansible vm -a 'ls'
Related: