# Includes and tags

**URL:** <https://forum.ansible.com/t/includes-and-tags/23252>\
**Category:** Ansible Project\
**Created:** [December 14, 2016, 8:56am UTC](https://forum.ansible.com/t/includes-and-tags/23252 "2016-12-14T08:56:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_V](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@John\_V](https://forum.ansible.com/u/John_V)\
**Post date:** [December 14, 2016, 8:56am UTC](https://forum.ansible.com/t/includes-and-tags/23252/1 "2016-12-14T08:56:43Z")

</div>

Hi,

I am trying to use a tag with an include. The include runs another play that triggers roles.

The documention says that I should be able to use the below, however when using this all tagged items run!

- include: foo.yml  
&nbsp;&nbsp;tags: [web,foo]

Haa anyone else faced this issue?

I am using the latest ansible version.

John

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 15, 2016, 5:25pm UTC](https://forum.ansible.com/t/includes-and-tags/23252/2 "2016-12-15T17:25:36Z")

</div>

That adds the tag to all the included tasks, it does NOT restrict to the tasks that have that tag.
