Executing nested tags

11 views
Skip to first unread message

Adam

unread,
Jul 22, 2019, 12:23:44 PM7/22/19
to Ansible Project
Does anyone know of a way to execute only nested tags?  For example, I use the same tag "cron" in multiple roles, but if I want to only execute the tasks tagged with "cron" under the "app1" role. Is there a syntax to make that work?

Thanks,
Adam

Matt Martz

unread,
Jul 22, 2019, 12:59:33 PM7/22/19
to ansible...@googlegroups.com
Not currently. There is a feature request somewhere to allow tag intersections and advanced operators, but it has not been implemented.

Tags are effectively an `OR` operation right now. 

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/84b45360-024f-4147-9de3-21763f69d527%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

Adam

unread,
Jul 24, 2019, 9:19:21 AM7/24/19
to Ansible Project
Thanks, Matt.


On Monday, July 22, 2019 at 12:59:33 PM UTC-4, Matt Martz wrote:
Not currently. There is a feature request somewhere to allow tag intersections and advanced operators, but it has not been implemented.

Tags are effectively an `OR` operation right now. 

On Mon, Jul 22, 2019 at 11:23 AM Adam <a.m...@gmail.com> wrote:
Does anyone know of a way to execute only nested tags?  For example, I use the same tag "cron" in multiple roles, but if I want to only execute the tasks tagged with "cron" under the "app1" role. Is there a syntax to make that work?

Thanks,
Adam

--
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 ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages