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!
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!
you can tag the whole role in it's definition:
- {role: myrole, tags: ['tag21'] }