diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 94f4dc074ae..8c3af13a005 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -275,7 +275,7 @@ class Play(object): if type(passed_vars['when']) is str: tmpcond.append(passed_vars['when']) elif type(passed_vars['when']) is list: - tmpcond.join(passed_vars['when']) + tmpcond += passed_vars['when'] if type(dep_vars['when']) is str: tmpcond.append(dep_vars['when'])