From 0894206467912a26fc836997257863880006a902 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 7 May 2012 23:37:09 -0400 Subject: [PATCH] Be able to use --extra-vars to set the hosts variable --- lib/ansible/playbook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 6671acb7ab8..68c8ea5cad1 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)