run_module
Execute Ansible modules on target hosts using the local ansible CLI, with check mode enabled by default to safely preview changes before applying.
Instructions
Run an Ansible module via local ansible CLI. Prefer check_mode=true first.
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": {
"module": "<module>"
},
"name": "run_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| hosts | No | localhost | |
| become | No | ||
| module | Yes | ||
| timeout | No | ||
| inventory | No | ||
| check_mode | No | ||
| connection | No | ||
| become_user | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |