Be able to use --extra-vars to set the hosts variable
This commit is contained in:
parent
5e84a05db9
commit
dd5f535925
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue