From 8eea1c7e01e2c17d84ea70d2a485e20de4b368a0 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sat, 6 Feb 2016 21:19:03 +0100 Subject: [PATCH] Allowing multiple tags to be specified in include's tags argument. --- lib/ansible/plugins/strategy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index cb34e4035a4..34db52a77dc 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -489,7 +489,7 @@ class StrategyBase: # error so that users know not to specify them both ways tags = temp_vars.pop('tags', []) if isinstance(tags, string_types): - tags = [ tags ] + tags = tags.split(',') if len(tags) > 0: if len(b._task_include.tags) > 0: raise AnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement",