run_ad_hoc
Execute Ansible ad-hoc commands to manage infrastructure on specified hosts, enabling quick configuration changes and system administration tasks.
Instructions
Run an Ansible ad-hoc command against specified hosts
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": {
"pattern": "<pattern>"
},
"name": "run_ad_hoc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| module | No | shell | |
| args | No | ||
| inventory | No | ||
| become | No | ||
| extra_vars | No |