diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index 24e7805322..9058d3ec65 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -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: