Skip to main content
Glama

ensure_scenario_roles

Check and install required Ansible roles for a cyber range scenario, automatically handling missing dependencies to prepare for deployment.

Instructions

Ensure all required roles for a scenario are installed, installing missing ones automatically.

This is the recommended MCP tool to use before deploying a scenario. It will:

  1. Check which roles are required for the scenario

  2. Check which roles are already installed

  3. Automatically install missing Galaxy roles (if auto_install=True)

  4. Automatically clone and install directory-based roles via SSH (if SSH configured)

  5. Report which roles need manual installation (if SSH not configured)

MCP Workflow:

  • Use ensure_scenario_roles() before deploying to ensure all roles are ready

  • Configure SSH access with configure_ssh_role_installation() for automatic directory-based role installation

  • Use install_role() to install individual roles as needed

Args: scenario_key: Scenario identifier (e.g., "redteam-lab-intermediate") siem_type: SIEM type if scenario uses SIEM (wazuh, splunk, elastic, security-onion, none) auto_install: Automatically install missing roles (default: True)

Returns: Dictionary with installation status for all required roles

Example: # Ensure all roles are installed before deployment result = await ensure_scenario_roles( scenario_key="redteam-lab-intermediate", siem_type="none", auto_install=True )

# Check status without installing result = await ensure_scenario_roles( scenario_key="redteam-lab-intermediate", auto_install=False )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenario_keyYes
siem_typeNowazuh
auto_installNo

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tjnull/Ludus-FastMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server