Commit dd5f5359 by Michael DeHaan

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

parent 5e84a05d
...@@ -493,6 +493,7 @@ class PlayBook(object): ...@@ -493,6 +493,7 @@ class PlayBook(object):
# get configuration information about the pattern # get configuration information about the pattern
pattern = pg.get('hosts',None) pattern = pg.get('hosts',None)
pattern = utils.template(pattern, self.extra_vars, {})
name = pg.get('name', pattern) name = pg.get('name', pattern)
if isinstance(pattern, list): if isinstance(pattern, list):
pattern = ';'.join(pattern) pattern = ';'.join(pattern)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment