diff --git a/lib/ansible/playbook/taggable.py b/lib/ansible/playbook/taggable.py index 8f5cfa0934..54ca377d08 100644 --- a/lib/ansible/playbook/taggable.py +++ b/lib/ansible/playbook/taggable.py @@ -38,7 +38,11 @@ class Taggable: if isinstance(ds, list): return ds elif isinstance(ds, basestring): - return [ ds ] + value = ds.split(',') + if isinstance(value, list): + return [ x.strip() for x in value ] + else: + return [ ds ] else: raise AnsibleError('tags must be specified as a list', obj=ds)