Inventory structure and vars
ansible_inventoryInspect Ansible inventory groups, hosts, and vars with secrets redacted; dynamic sources skipped unless explicitly enabled.
Instructions
Groups, hosts and inventory-level vars (ansible-inventory --graph/--list/--host), always redacted: vault values, secret-like names and secret-shaped values are hidden, templates are shown unrendered. Script and plugin inventory sources run code, so they are skipped unless ANSIBLE_MCP_ALLOW_DYNAMIC_INVENTORY=1 (which can also call cloud APIs); vault secrets are never supplied, so whole-file vaults degrade to a per-file view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Ansible project directory. Default: ANSIBLE_MCP_DIR, else the server's working directory. | |
| host | No | Show one host's vars (--host) | |
| vars | No | none | names | values (default: names for the list, values for host) | |
| group | No | Root the graph at this group | |
| limit | No | Max hosts listed (default 200) | |
| inventory | No | Inventory source relative to dir (default: ansible.cfg's) |