Ansible Roles
Automates infrastructure provisioning and configuration using pre-built, curated Ansible roles from The Bushido Collective.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add ansible-roles npx -- -y @trustedskills/ansible-roles
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"ansible-roles": {
"command": "npx",
"args": [
"-y",
"@trustedskills/ansible-roles"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to discover and install Ansible roles directly from repositories like Galaxy or local paths. It streamlines infrastructure automation by allowing agents to dynamically fetch role definitions, dependencies, and playbooks without manual intervention.
When to use it
- Automating the deployment of standard services (e.g., Nginx, PostgreSQL) across multiple servers during a provisioning workflow.
- Updating legacy infrastructure configurations by installing newer versions of specific Ansible roles from remote repositories.
- Orchestrating complex multi-step deployments where different stages require distinct role sets defined in an inventory.
Key capabilities
- Discovery: Locates available roles within configured sources or local directories.
- Installation: Downloads and installs roles into the target project structure automatically.
- Dependency Resolution: Handles prerequisite role requirements to ensure a valid play execution environment.
- Version Management: Allows specifying exact versions or version ranges for installed roles.
Example prompts
- "Install the
geerlingguy.nginxrole from Ansible Galaxy into my current project." - "Discover all available database management roles and install the one with the highest rating."
- "Add a local custom role named
my_app_configto the inventory before running the deployment playbook."
Tips & gotchas
Ensure your AI agent has network access to external repositories like Ansible Galaxy if you intend to install remote roles. Always verify that installed roles are compatible with your existing Ansible version and collection dependencies to prevent runtime errors during execution.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.