4.4. About the Ansible command line interface
Using Ansible on the command line is a useful way to execute tasks that you don’t repeat very frequently; for repeated tasks, writing a playbook is recommended.
An ad-hoc command for Ansible on the command line follows this structure:
ansible [pattern] -m [module] -a "[module options]"
$ ansible [pattern] -m [module] -a "[module options]"