Ansible MCP Server

by tarnover
MIT License
1
  • Linux
  • Apple

run_ad_hoc

Execute Ansible ad-hoc commands on specific hosts to manage configurations, deploy applications, or perform system tasks directly from the Ansible MCP Server interface.

Instructions

Run an Ansible ad-hoc command against specified hosts

Input Schema

NameRequiredDescriptionDefault
argsNo
becomeNo
extra_varsNo
inventoryNo
moduleNoshell
patternYes

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" }
ID: vkbe70d98s