mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-03 15:10:21 -07:00
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…
Add table
Add a link
Reference in a new issue