cli.meta.applications.role_name package

Module contents

Compatibility wrapper.

This package was migrated from a flat module (role_name.py) to a package layout:

role_name/__main__.py contains the original implementation.

We re-export the public API so existing imports keep working.

cli.meta.applications.role_name.get_role(application_id, roles_path)

Find the role directory under roles_path whose vars/main.yml contains the specified application_id.

Parameters:
  • application_id – The application_id to match.

  • roles_path – Path to the roles directory.

Returns:

The name of the matching role directory.

Raises:

RuntimeError – If no match is found or if an error occurs while reading files.

cli.meta.applications.role_name.main()