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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| inventory | No | ||
| playbook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||