LinuxBuzz published a tutorial about executing Ansible ad-hoc commands.
How to Execute Ansible Ad-Hoc Commands
In this article, we will learn how to run or execute ansible ad-hoc commands on remote managed host with examples.
How to Execute Ansible Ad-Hoc Commands