ansible-service-manager
Check, start, stop, restart, or reload services on target hosts using Ansible, with optional log retrieval for troubleshooting.
Instructions
Manage services with status checking and log correlation.
Args: host_pattern: Target hosts pattern service_name: Name of the service action: Action to perform (status, start, stop, restart, reload) project_root: Project root directory ansible_cfg_path: Ansible config file path inventory_paths: Inventory file paths check_logs: Fetch recent service logs
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>",
"service_name": "<service_name>",
"action": "<action>"
},
"name": "ansible-service-manager"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| check_logs | No | ||
| host_pattern | Yes | ||
| project_root | No | ||
| service_name | Yes | ||
| inventory_paths | No | ||
| ansible_cfg_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||