Ansible Include with tags issue

27 views
Skip to first unread message

Binny

unread,
Oct 3, 2017, 1:52:10 PM10/3/17
to Ansible Project
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 

Reply all
Reply to author
Forward
0 new messages