inventory-parse
Parse Ansible inventories by merging group_vars and host_vars, supporting custom project roots, ansible.cfg, and inventory paths.
Instructions
Parse inventory via ansible-inventory, merging group_vars/host_vars.
Args: project_root: Project root folder (sets CWD and uses ansible.cfg if present) ansible_cfg_path: Explicit ansible.cfg path (overrides) inventory_paths: Optional list of inventory files/dirs (ini/yaml/no-ext supported) include_hostvars: Include merged hostvars in response deep: Placeholder for future source mapping; ignored for now
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "inventory-parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deep | No | ||
| project_root | No | ||
| inventory_paths | No | ||
| ansible_cfg_path | No | ||
| include_hostvars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||