summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook
diff options
context:
space:
mode:
authorjctanner <tanner.jc@gmail.com>2014-02-05 23:52:20 -0500
committerjctanner <tanner.jc@gmail.com>2014-02-05 23:52:20 -0500
commit28933de84df822f5bbca6f8621e70e56f0ecc7f8 (patch)
tree52bc4c1e17145844551fac02c1d7a3e6f23fca93 /lib/ansible/playbook
parent119543f0af59b94d9910027ec1405b24f827649e (diff)
parent59d5892fa38b4f762621dacf6052aa3331e714a4 (diff)
downloadansible-28933de84df822f5bbca6f8621e70e56f0ecc7f8.tar.gz
Merge pull request #5771 from bcoca/play_hosts2
added new play_hosts var
Diffstat (limited to 'lib/ansible/playbook')
-rw-r--r--lib/ansible/playbook/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py
index 4b7705d3d0..9b19c59ac9 100644
--- a/lib/ansible/playbook/__init__.py
+++ b/lib/ansible/playbook/__init__.py
@@ -356,6 +356,8 @@ class PlayBook(object):
no_log=task.no_log,
)
+ runner.module_vars.update({'play_hosts': hosts})
+
if task.async_seconds == 0:
results = runner.run()
else: