# Executing nested tags

**URL:** <https://forum.ansible.com/t/executing-nested-tags/30838>\
**Category:** Ansible Project\
**Created:** [July 22, 2019, 4:23pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838 "2019-07-22T16:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.ansible.com/u/Adam)\
**Post date:** [July 22, 2019, 4:23pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838/1 "2019-07-22T16:23:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [July 22, 2019, 4:58pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838/2 "2019-07-22T16:58:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.ansible.com/u/Adam)\
**Post date:** [July 24, 2019, 1:19pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838/3 "2019-07-24T13:19:21Z")

</div>

Thanks, Matt.
