# Ansible Include with tags issue

**URL:** <https://forum.ansible.com/t/ansible-include-with-tags-issue/25672>\
**Category:** Ansible Project\
**Created:** [October 3, 2017, 5:52pm UTC](https://forum.ansible.com/t/ansible-include-with-tags-issue/25672 "2017-10-03T17:52:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bapi](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Bapi](https://forum.ansible.com/u/Bapi)\
**Post date:** [October 3, 2017, 5:52pm UTC](https://forum.ansible.com/t/ansible-include-with-tags-issue/25672/1 "2017-10-03T17:52:10Z")

</div>

Hello,

My playbook looks like::

- hosts: foo

- include: tags.yml  
tags: [“tag1”, “tag2”, “tag3”, “tag4”]

while i run the playbook like::ansible-playbook tags.yml --tags “tag1,tag2”

Expected result:: should run only tag1 and tag2

Actual result:: It running whole playbook it self.

Can someone please suggest?

Ansible version::ansible 2.2.1.0

Thanks
