check_role_installed
Verify if an Ansible role is installed on a Ludus cyber range environment using CLI or HTTP API without SSH access.
Instructions
Check if a specific Ansible role is installed.
Uses the ludus CLI with --url when available for reliable remote access. Falls back to HTTP API if CLI is not available. No SSH required.
Args: role_name: Name of the role to check (e.g., "ludus-ad-content", "badsectorlabs.ludus_adcs")
Returns: Dictionary indicating if the role is installed
Example: # Check if a role is installed result = await check_role_installed(role_name="ludus-ad-content")
# If not installed, use install_role() to install it
if not result.get("installed"):
await install_role(role_name="ludus-ad-content")
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_name | Yes |