run_ansible_playbook
Execute an existing Ansible playbook for a service on a remote host, with support for tags, check mode, and extra variables.
Instructions
Run an existing Ansible playbook for a service
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": {
"service_name": "<service_name>",
"hostname": "<hostname>"
},
"name": "run_ansible_playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Ansible tags to run specific tasks | |
| hostname | Yes | Hostname or IP address of the device | |
| password | No | SSH password (not needed for mcp_admin after setup) | |
| username | No | SSH username (use 'mcp_admin' for passwordless access after setup) | mcp_admin |
| check_mode | No | Run in check mode (dry run) | |
| extra_vars | No | Extra variables to pass to the playbook | |
| service_name | Yes | Name of the service playbook to run |