Ansible ad hoc commands

In order to issue direct command on server via ansible:

ansible [pattern] -m [module] -a "[module options]"
ansible webservers -e "ansible_user=root" -m shell -a "/etc/init.d/nginx restart"