run_ad_hoc
Execute Ansible ad-hoc commands on specified hosts with a single request, enabling immediate task execution and configuration management without full playbooks.
Instructions
Run an Ansible ad-hoc command against specified hosts
Input Schema
Name | Required | Description | Default |
---|---|---|---|
args | No | ||
become | No | ||
extra_vars | No | ||
inventory | No | ||
module | No | shell | |
pattern | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"args": {
"type": "string"
},
"become": {
"type": "boolean"
},
"extra_vars": {
"additionalProperties": {},
"type": "object"
},
"inventory": {
"type": "string"
},
"module": {
"default": "shell",
"type": "string"
},
"pattern": {
"minLength": 1,
"type": "string"
}
},
"required": [
"pattern"
],
"type": "object"
}