Michel Blanc
unread,Nov 8, 2015, 1:17:43 AM11/8/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi all,
Playing with 2.0, I just stumbled on:
[DEPRECATION WARNING]: You should not specify tags in the include
parameters. All tags should be specified using the task-level option.
This feature will be removed in a future release.
So, basically, this means that you cannot do this anymore:
myrole/tasks/main.yml:
- include: setup.yml tags=myrole,setup
- include: myrole.yml tags=myrole
This pattern is very handy: it lets you "assign" tags on all tasks in a
file. This helps keeping tasks descriptions less verbose, and improves
readability
If I understand the warning correctly, we won't be able to do that in
the future. What is the rationale behind the decision ? Will there be an
alternate way to do it (besides blocks) ?
Thanks,
M
--
Michel Blanc
{ :github => "@leucos", :twitter => "@b9m", :gpg => "0X24B35C22" }