Ad-hoc commands are simple one-line commands used to perform a certain task. You can think of Adhoc commands as an alternative to writing playbooks. An example of an Adhoc command is as follows:
ansible host -m netscaler -a "nsc_host=nsc.example.com user=apiuser password=apipass"
The above Adhoc command accesses the netscaler module to disable the server.