def run_job(pb_path,**kwargs): api = AnsibleApi(pb_path, **kwargs) api.run()
def run_adhoc(**kwargs): module_name = kwargs.get('module_name', '') pb_path = playbook_module_replace(module_name) api = AnsibleApi(pb_path, **kwargs) api.run()