# Executing only selcted roles when provisioning a Vagrant box

**URL:** https://discourse.roots.io/t/executing-only-selcted-roles-when-provisioning-a-vagrant-box/5465
**Category:** trellis
**Created:** 2015-12-09T10:16:09Z
**Posts:** 2
**Showing post:** 2 of 2

## Post 2 by @ben — 2015-12-09T16:25:58Z

This has been brought up multiple times on this forum. A quick search brought me to this post:

> [@Running single ansible tasks in development](https://discourse.roots.io/t/running-single-ansible-tasks-in-development/4808/2):
>
> As you discovered, vagrant reload doesn’t necessarily run the provisioning, which was needed to apply the your changes to caching. I believe vagrant provision would have been sufficient, without the need to reload. As you discovered, tags allow you to run portions of your playbook. The [nginx tag is assigned](https://github.com/roots/trellis/blob/aa5bccaf3a87dd984b5c3479e4c6b35d9efd07bb/dev.yml#L19) to the entire nginx role, so adding the -t nginx option would run all the tasks in that role. As an aside, Ansible also makes it possible to [add tags to individual tasks](http://docs.ansible.com/ansible/playbooks_tags.html), for even more prec…

---

_[View the full topic](https://discourse.roots.io/t/executing-only-selcted-roles-when-provisioning-a-vagrant-box/5465)._
