diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 6671acb7ab..68c8ea5cad 100644 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -493,6 +493,7 @@ class PlayBook(object): # get configuration information about the pattern pattern = pg.get('hosts',None) + pattern = utils.template(pattern, self.extra_vars, {}) name = pg.get('name', pattern) if isinstance(pattern, list): pattern = ';'.join(pattern)