Commit 59d5892f by Brian Coca

added new play_hosts var

this variable has the 'current host list' to be executed over in the
play. Useful when using --limit to not iterate over hosts not included
in play in templates or with_items.

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
parent ea138cc1
......@@ -346,6 +346,8 @@ class PlayBook(object):
run_hosts=hosts
)
runner.module_vars.update({'play_hosts': hosts})
if task.async_seconds == 0:
results = runner.run()
else:
......
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