mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Merge pull request #5771 from bcoca/play_hosts2
added new play_hosts var
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user