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

This commit is contained in:
Michael DeHaan 2013-03-25 22:47:06 -04:00
commit 0d11f53eff
2 changed files with 5 additions and 0 deletions

View file

@ -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)