Commit 4de28162 by Jeroen Hoekx

Add ./library to module search path.

It allows for custom modules in the best practices directory structure.
Bundling custom modules along with playbooks in packages is useful.
parent 53360d6c
......@@ -114,6 +114,8 @@ class PlayBook(object):
self.basedir = os.path.dirname(playbook)
self.playbook = utils.parse_yaml_from_file(playbook)
self.module_path = self.module_path + os.pathsep + os.path.join(self.basedir, "library")
# *****************************************************
def run(self):
......
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