Ansible language server plugin for Claude Code, providing code intelligence features like diagnostics, auto-completion, hover documentation, and go-to-definition for Ansible playbooks and roles.
Powered by @ansible/ansible-language-server (>= 26.4.4).
ansible --syntax-check)Once the plugin is installed, open an Ansible playbook in Claude Code and try these prompts.
Claude can understand the structure of your playbook and locate specific module usage without grepping.
Open examples/webapp-deploy.yaml and try:
Find all uses of the debug module in this playbook.
Claude will use the LSP to locate each matching task and return the file and line number.
Claude can validate your playbook and propose fixes without running it.
Open examples/broken-playbook.yaml and try:
Check this playbook for errors and fix any issues you find.
Claude will read the LSP diagnostics, explain what's wrong, and edit the file to fix the errors.
.yml, .yaml
# Install the Ansible language server
npm install -g @ansible/ansible-language-server
Search for "ansible-lsp" in the /plugin Discover tab, or:
claude plugin install ansible-lsp
claude --plugin-dir /path/to/claude-ansible-lsp
npm install -g @ansible/ansible-language-server)client/registerCapability requests. ALS >= 26.4.3 handles this gracefully, but as a result:
ansible.cfg, .ansible-lint, or role meta/main.yml files require a server restart to take effectOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub tima/claude-ansible-lspAnsible playbook validation and configuration management best practices
Ansible automation skills for Claude Code: playbook development, debugging, shell conversion, and interactive workflows
End-to-end Ansible workflow automation: design, create, validate, and review playbooks and roles with orchestrated multi-agent pipelines
Display the Zen of Ansible principles and review Ansible code against them. Use when the user wants to see the Zen of Ansible, get philosophical guidance on their automation approach, or review code for simplicity, readability, and clarity. Use when user says "zen of ansible", "simplify my playbook", "is this too complex", or "clean code review". Do NOT use for strict rule compliance (use ansible-good-practices instead). Do NOT use for Ansible module reference or documentation lookups (use ansible-docs instead).
Ansible automation toolkit for playbook design, role creation, and inventory management. Includes playbook architect agent for strategic automation decisions.
Create Ansible playbooks for configuration management