Be able to use --extra-vars to set the hosts variable

pull/4420/head
Michael DeHaan 2012-05-07 23:37:09 -04:00
parent 8e8cde3a2c
commit 0894206467
1 changed files with 1 additions and 0 deletions

View File

@ -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)