# ansible-language-server を Homebrew, Nix でインストール

ansible-language-server のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ansible-language-server
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ansible-language-server
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ansible-language-server
```

  証拠: nixpkgs package indexes: ansible-language-server from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:ansible-language-server
- **パッケージマネージャ:** Homebrew
- **バージョン:** 26.6.0
- **ソース概要:** Language Server for Ansible Files
- **ホームページ:** <https://github.com/ansible/vscode-ansible>
- **最終更新:** 2026-06-02T13:00:20Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- ansible-language-server (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 26.6.0
## プロジェクトの歴史と使われ方

Ansible Language Server is the LSP server used by editor integrations to provide Ansible-aware syntax highlighting, validation, linting, completion, documentation references, and navigation.

### プロジェクトの歴史

The separate ansible-language-server repository now states that the codebase is included in the Ansible VS Code Extension repository. The active source repository for the Homebrew formula is therefore ansible/vscode-ansible.

The language server is documented as a reusable server rather than only a VS Code internals package. Its docs say it is used by the Ansible extension for VS Code/Codium, Vim/Neovim integrations, and Emacs LSP clients, and that releases are published to npm.

### 採用の歴史

The project follows the wider editor shift toward Language Server Protocol support: instead of every editor implementing Ansible-specific YAML behavior independently, the server centralizes Ansible semantics and lets multiple editors consume them.

Homebrew packaging makes the NPM-published language server easy to install as a standalone executable for editors such as Neovim or Emacs, where users often wire language servers by path.

### 使われ方

In practice, users rarely run the language server directly unless configuring an editor. The server is launched by editor clients and uses the local Ansible tooling stack to provide validation, linting, completion, and documentation lookup for playbooks, roles, and collections.

For VS Code users it is bundled into the Red Hat Ansible extension experience; for terminal-editor users, the packaged `ansible-language-server` executable is the useful artifact.

### パッケージ好きにとっての重要性

This package is a nice example of a GUI-adjacent tool becoming a standalone CLI dependency. Although born from editor integration, the language server is valuable to package managers because LSP tooling expects real executables discoverable on PATH.

Its migration into the vscode-ansible repository is also notable: the source tree is unified with the main extension, while the language server remains separately releasable and packageable.

### タイムライン

- 2021: Early 1.x tags appear for the Ansible language-server/editor integration line.
- 2024: Maintainers decide to merge ansible-language-server back into the vscode-ansible repository while keeping separate releases.
- 2024: The release line moves into calendar-style 24.x versions.
- 2026: NPM and Homebrew carry 26.x releases of the standalone language server.

### Related projects

- ansible/vscode-ansible contains the active codebase and VS Code extension.
- ansible-lint supplies linting behavior surfaced by editor integrations.
- yaml-language-server and editor LSP clients are adjacent pieces in typical Ansible editor setups.

### ソース

- <https://docs.ansible.com/projects/vscode-ansible/als/>
- <https://github.com/ansible/ansible-language-server>
- <https://github.com/ansible/vscode-ansible>
- <https://github.com/ansible/vscode-ansible/issues/1134>
- <https://www.npmjs.com/package/@ansible/ansible-language-server>


## セキュリティノート

ansible-language-server に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Nix - ansible-language-server: normalized package name match | nixpkgs package indexes: ansible-language-server from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

View the package source record on GitHub. [combined/ansible-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ansible-language-server.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
