It's unlikely we'd want to add more CLI options for this purpose. However, there are easy workarounds if you would like this behavior.
Consider your site.yml (a file that configures all of your infrastructure) if it were like this: - include: webservers.yml - include: dbservers.yml - include: other.yml If you want to run just servers in the "dbservers" role, instead of running site.yml, just run "dbservers.yml" instead. This trick is using playbooks to include other playbooks (because a playbook is just, in the end, a list of plays in order). --Michael On Wed, Apr 23, 2014 at 10:19 AM, Aaron Hunter <[email protected]>wrote: > While testing I often want to limit my run to a specific role. I know > limiting can be done by host and by tag but did you ever consider adding a > "-r" limit by role option to the ansible-playbook command? > > Thanks, > Aaron > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0bc34a77-fc27-4791-a65a-b4d2174201d1%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/0bc34a77-fc27-4791-a65a-b4d2174201d1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyuMH-03v-gX8WyrU1iDQLKauZezF4USioA%3D26BxnDeug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
