Some basic examples to show how to work with ansible roles. Based on the vagrant virtual machine setup.
install:
ansible-galaxy install tecris.maven
for webserversansible-galaxy install geerlingguy.mysql
for database servers
ansible-playbook -i inventory provision.yml
ansible-playbook -i inventory provision.yml --limit webservers
ansible-playbook -i inventory provision.yml --limit webservers --tags=java