diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index fb9f3f565c1..4abd51fbb92 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -265,7 +265,7 @@ class Play(object): if type(dep_vars['when']) is str: tmpcond.append(dep_vars['when']) elif type(dep_vars['when']) is list: - tmpcond.join(dep_vars['when']) + tmpcond += dep_vars['when'] if len(tmpcond) > 0: dep_vars['when'] = tmpcond