code: def get_roles():
      
      roles = []
      for root, subfolders, files in os.walk('roles'):
          for filename in files:
              if filename.endswith(".json"):
                  path = os.path.join(
                      root[len('roles'):], filename[:-len('.json')])
                  roles.append(_get_role(path))
      return sorted(roles, key=lambda x: x['fullname'])
docs: Gets all roles found in the 'roles' directory