inventory-diff
Identifies differences between two Ansible inventories: added/removed hosts, groups, group membership changes, and optional hostvars key changes.
Instructions
Diff two inventories: hosts, groups, and optionally hostvars keys.
Returns:
added_hosts, removed_hosts
added_groups, removed_groups, group_membership_changes
hostvars_key_changes (if include_hostvars)
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-diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_hostvars | No | ||
| left_project_root | No | ||
| right_project_root | No | ||
| left_inventory_paths | No | ||
| left_ansible_cfg_path | No | ||
| right_inventory_paths | No | ||
| right_ansible_cfg_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||