|
|
|
@ -20,6 +20,7 @@ import ansible.runner
|
|
|
|
|
import ansible.constants as C
|
|
|
|
|
from ansible import utils
|
|
|
|
|
from ansible import errors
|
|
|
|
|
import ansible.callbacks
|
|
|
|
|
import os
|
|
|
|
|
import collections
|
|
|
|
|
from play import Play
|
|
|
|
@ -120,6 +121,9 @@ class PlayBook(object):
|
|
|
|
|
self.basedir = os.path.dirname(playbook)
|
|
|
|
|
(self.playbook, self.play_basedirs) = self._load_playbook_from_file(playbook)
|
|
|
|
|
self.module_path = self.module_path + os.pathsep + os.path.join(self.basedir, "library")
|
|
|
|
|
ansible.callbacks.load_more_callbacks(os.path.join(self.basedir, "callback_plugins"))
|
|
|
|
|
|
|
|
|
|
self.lookup_plugins_list.update(utils.import_plugins(os.path.join(self.basedir, 'lookup_plugins')))
|
|
|
|
|
|
|
|
|
|
# *****************************************************
|
|
|
|
|
|
|
|
|
|