You can tag your role <http://docs.ansible.com/playbooks_tags.html> just
like anything else. Doing so effectively runs the role as if every task
inside the role has the tag.
roles:
- role: myCoolRole,
tags: tagsAreCool
On Wednesday, January 21, 2015 at 6:03:34 AM UTC-5, Andrew Craft wrote:
>
> In the same way that you can use tags to target specific tasks in a large
> playbook, is it possible to filter by roles? Tags are useful but often find
> i am tagging all tasks in a role with same tag so i can run just those,
> would be nice if I could use roles in a similar way to filter as tags?
>
> thanks
>
--
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/59d50c0e-4a9d-412a-990e-2b2df73956ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.