r/ansible • u/kks235 • 16h ago
I built an Ansible language server for role developers, with role variable references, role parameter docs, role navigation and more
Ever wanted to find everywhere an Ansible variable is used, read a role’s parameter docs without leaving your playbook, or jump directly into its implementation?
Those were things I kept missing while writing Ansible, so I built zals—an open-source Ansible language server written in Zig, with extensions for VS Code and compatible editors.
Install: VS Code Marketplace · Open VSX / Cursor Repo: https://github.com/kksat/zals
What it adds to your workflow
Variables
- Hover over variables to inspect them.

- Find references across your workspace—including references to a specific dictionary key.

- Recognize ansible_facts['distribution'] and ansible_facts.distribution as access to the same key.

- Add and remove variable debug statements through editor actions.
Roles
- Hover over include_role or import_role names to read the role’s README.

- Hover over role parameters to see documentation from argument_specs.

- Jump to a role’s argument specification or its tasks/main implementation.

- Jump from a role parameter to its specification or its value in defaults/main or vars/main.

Workspace
- Fuzzy-search playbooks, roles, and tasks through workspace symbols.

You also get syntax highlighting, smart completion, module documentation, navigation to module source, and ansible-lint integration.
Performance, with actual measurements
For the biggest ansible codebase I have ~ 5,500 files:
Time to ready. That measures server launch through workspace index readiness—not editor startup or Ansible documentation loading.
- median time to ready for 5,542 files: 480 ms
- variable hover: 6.2 ms
- role definition: 5.1 ms
- workspace symbol search: 9.4 ms
This means that all the operations feel instantaneous in VSCode. This is what I measured on my machine, your experience might vary, but I am certain that you will be happy with the speed.
The extension itself is small and focused on YAML editing specifically for Ansible role developers. Whole extension is only few MBs with memory usage of around 100 MB (for the same 5500 files example I have)
Core editor features don’t require an Ansible runtime, ansible-core is needed for the optional playbook syntax check, and ansible-lint for its linting integration.
This isn’t a replacement for every feature in official Red Hat’s ansible extension: there’s no Lightspeed, MCP server, or execution-environment management. But all the basic features for ansible role developers are the same in both extension. So zals might be a drop in replacement for official ansible VSCode extension, it also can be used together with official extension.
Try it on your own playbooks and collections
Install zals for VS Code or get it from Open VSX.