1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Jeroen Hoekx 2012-06-25 20:57:09 +02:00
parent 618924a24f
commit 879ddddf6f

View file

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