Test connection as root
$ ansible all -m ping -u USER --ask-become-pass
Run command directly
$ ansible all -s -m shell -a 'apt-get install nginx'
Run playbook and ask for sudo password
$ ansible-playbook -s main.yml -K
Create templates for a role:
$ ansible-galaxy init ROLENAME