How to play a single role?

34 views
Skip to first unread message

Philip Hallstrom

unread,
May 15, 2015, 2:41:57 PM5/15/15
to ansible...@googlegroups.com
Using ansible_playback I can use "-t" to limit the tasks played to the tags I specify.  Is there anyway to do that with roles?  Something like "-r role"?  

Or do I need to tag every task in the role with the name of the role?

Thanks!

Brian Coca

unread,
May 15, 2015, 2:42:44 PM5/15/15
to ansible...@googlegroups.com
you can tag the whole role in it's definition:

- {role: myrole, tags: ['tag21'] }




--
Brian Coca
Reply all
Reply to author
Forward
0 new messages