ansible-compare-states
Compare current system state to a baseline snapshot to detect configuration drift and ensure infrastructure consistency.
Instructions
Compare current system state against a previously captured baseline.
Args: host_pattern: Target hosts pattern baseline_snapshot_id: ID of the baseline snapshot to compare against current_snapshot_name: Optional name for the current state snapshot project_root: Project root directory ansible_cfg_path: Ansible config file path inventory_paths: Inventory file paths
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host_pattern": "<host_pattern>",
"baseline_snapshot_id": "<baseline_snapshot_id>"
},
"name": "ansible-compare-states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_pattern | Yes | ||
| project_root | No | ||
| inventory_paths | No | ||
| ansible_cfg_path | No | ||
| baseline_snapshot_id | Yes | ||
| current_snapshot_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||