Skip to main content
Glama

Ansible MCP Server

by tarnover

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" }

You must be authenticated.

Other Tools from Ansible MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tarnover/mcp-ansible'

If you have feedback or need assistance with the MCP directory API, please join our Discord server