diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 0a5d976a3dc..4da4975177a 100644 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -544,6 +544,8 @@ class PlayBook(object): # get configuration information about the pattern pattern = pg.get('hosts',None) + if isinstance(pattern, list): + pattern = ';'.join(pattern) if self.override_hosts: pattern = 'all' if pattern is None: