Merge pull request #5771 from bcoca/play_hosts2
added new play_hosts var
This commit is contained in:
commit
28933de84d
1 changed files with 2 additions and 0 deletions
|
@ -356,6 +356,8 @@ class PlayBook(object):
|
||||||
no_log=task.no_log,
|
no_log=task.no_log,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
runner.module_vars.update({'play_hosts': hosts})
|
||||||
|
|
||||||
if task.async_seconds == 0:
|
if task.async_seconds == 0:
|
||||||
results = runner.run()
|
results = runner.run()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue