Ansible Include with tags issue

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