diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index 93b95049987..5ea31b526ce 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -278,7 +278,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'])