Commit 0f6669fa by Seth Vidal

make --list-hosts expand out extra vars in the hosts: field

parent 959a4610
......@@ -131,7 +131,8 @@ def main(args):
label = 'unnamed'
if 'name' in play:
label = play['name']
hosts = pb.inventory.list_hosts(play['hosts'])
tmp_hosts = utils.template(pb.basedir, play['hosts'], extra_vars)
hosts = pb.inventory.list_hosts(tmp_hosts)
print ' hosts in play %s (%s): #%d' % (playnum, label, len(hosts))
for host in hosts:
print ' %s' % host
......
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