arvan_ansible_playbook
Execute an Ansible playbook on a host by supplying YAML content and SSH credentials. Supports privilege escalation, extra variables, and custom timeout.
Instructions
Run an Ansible playbook against a host (requires ansible-playbook).
playbook is the YAML content. Auth/host default to the SSH settings.
Host-key checking is disabled (fresh servers).
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": "<host>",
"playbook": "<playbook>"
},
"name": "arvan_ansible_playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| playbook | Yes | ||
| ssh_user | No | ||
| private_key | No | ||
| key_file | No | ||
| ssh_port | No | ||
| become | No | ||
| extra_vars | No | ||
| timeout | No |