create-role-structure
Scaffold a role directory tree
How to use it
create-role-structure is exposed by the MCP Ansible MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the create-role-structure tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Ansible
pip install -r requirements.txtOther tools in MCP Ansible (24)
Fetch and analyze log files
Run setup and return facts
List hosts and groups from an inventory
Ping hosts via ad-hoc
Run a playbook
Execute shell commands with enhanced parsing
Execute a role via a temporary playbook
Service management with logs
Run an ad‑hoc module
Run playbook twice and assert no changes second run
Create an Ansible playbook file from YAML string or object
Install roles/collections from requirements
Generate a lock file of installed roles/collections
Diff two inventories
Show a host’s groups and merged vars
Show inventory graph
Parse inventories (ansible.cfg aware, merges groupvars/hostvars)
Show registered projects
Bootstrap project (env info + galaxy install)
Discover playbooks under a project root
Run a playbook using project inventory/env
Register an Ansible project for reuse
Syntax check a playbook
Validate YAML files