Fixes #12605
James Cammarata authored on 2015/10/05 21:40:57... | ... |
@@ -78,6 +78,9 @@ class PlaybookInclude(Base, Conditional, Taggable): |
78 | 78 |
for entry in pb._entries: |
79 | 79 |
temp_vars = entry.vars.copy() |
80 | 80 |
temp_vars.update(new_obj.vars) |
81 |
+ param_tags = temp_vars.pop('tags', None) |
|
82 |
+ if param_tags is not None: |
|
83 |
+ entry.tags.extend(param_tags.split(',')) |
|
81 | 84 |
entry.vars = temp_vars |
82 | 85 |
entry.tags = list(set(entry.tags).union(new_obj.tags)) |
83 | 86 |
if entry._included_path is None: |