Commit 0d11f53e by Michael DeHaan

Let the callbacks see the playbook and (current) runner objects.

parent b0a64973
......@@ -114,6 +114,9 @@ class PlayBook(object):
self.private_key_file = private_key_file
self.only_tags = only_tags
self.callbacks.playbook = self
self.runner_callbacks.playbook = self
if inventory is None:
self.inventory = ansible.inventory.Inventory(host_list)
self.inventory.subset(subset)
......
......@@ -157,6 +157,8 @@ class Runner(object):
self.environment = environment
self.complex_args = complex_args
self.callbacks.runner = self
# misc housekeeping
if subset and self.inventory._subset is None:
# don't override subset when passed from playbook
......
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