validate-playbook
Check Ansible playbook syntax for errors using ansible-playbook --syntax-check. Specify playbook path and optional inventory.
Instructions
Validate playbook syntax using ansible-playbook --syntax-check.
Args: playbook_path: Path to the playbook file. inventory: Optional inventory path or host list. cwd: Optional working directory to run the command in. Returns: A dict with keys: ok (bool), rc, stdout, stderr
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": {
"playbook_path": "<playbook_path>"
},
"name": "validate-playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| inventory | No | ||
| playbook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||