Includes and tags

12 views
Skip to first unread message

John Vintiner

unread,
Dec 15, 2016, 12:19:25 PM12/15/16
to Ansible Project
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
tags: [web,foo]

Haa anyone else faced this issue?

I am using the latest ansible version.

John

Brian Coca

unread,
Dec 15, 2016, 12:25:41 PM12/15/16
to ansible...@googlegroups.com
That adds the tag to all the included tasks, it does NOT restrict to the tasks that have that tag.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages