ansible-playbook [-C] [-D] -i <inventory> [-u <ssh-user>] [-e <var=value>] [-t tag1,tag2] [--list-hosts] [-l host1,host2] play.yml
-C check_mode
-D show file diffs
ansible -i <inventory> <host/hostgroup> -a <command>
Example. Print date for instances in group api_socket and env beta:
ansible -i inventory/beta tag_Role_api_socket -a "date"