plugins.filter.get package

Subpackages

Submodules

plugins.filter.get.category_entries module

class plugins.filter.get.category_entries.FilterModule

Bases: object

Custom filters for Ansible

filters()
plugins.filter.get.category_entries.get_category_entries(prefix, roles_path='roles')

Returns a list of role names under the given roles_path that start with the specified prefix.

Parameters:
  • prefix – String prefix to match role names.

  • roles_path – Path to the roles directory (default: ‘roles’).

Returns:

List of matching role names.

plugins.filter.get.deployment_types_from_groups module

class plugins.filter.get.deployment_types_from_groups.FilterModule

Bases: object

filters()
plugins.filter.get.deployment_types_from_groups.get_deployment_types_from_groups(group_names)

plugins.filter.get.docker_paths module

class plugins.filter.get.docker_paths.FilterModule

Bases: object

filters()

plugins.filter.get.domain module

class plugins.filter.get.domain.FilterModule

Bases: object

filters()

plugins.filter.get.entity_name module

class plugins.filter.get.entity_name.FilterModule

Bases: object

filters()

plugins.filter.get.role module

Ansible filter plugin: get_role

This filter inspects each role under the given roles directory, loads its vars/main.yml, and returns the role folder name whose application_id matches the provided value.

class plugins.filter.get.role.FilterModule

Bases: object

Register the get_role filter

filters()
plugins.filter.get.role.get_role(application_id, roles_path='roles')

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

Parameters:
  • application_id – The application_id to match.

  • roles_path – Path to the roles directory (default: ‘roles’).

Returns:

The name of the matching role directory.

Raises:

AnsibleFilterError – If vars file is unreadable or no match is found.

plugins.filter.get.service_script_path module

class plugins.filter.get.service_script_path.FilterModule

Bases: object

Custom filters for Ansible

filters()
plugins.filter.get.service_script_path.get_service_script_path(systemctl_id, script_type)

Build the path to a service script based on systemctl_id and type.

Parameters:
  • systemctl_id – The identifier of the system service.

  • script_type – The script type/extension (e.g., sh, py, yml).

Returns:

The full path string.

plugins.filter.get.url module

class plugins.filter.get.url.FilterModule

Bases: object

Infinito.Nexus application config extraction filters

filters()

Module contents