Skip to content



For more information about the LSP server, check ansible-language-server.


This Server supports automatic install. Install this language server with M-xlsp-install-serverRETansible-lsRET.

npm i -g @ansible/ansible-language-server

Debugger: Not available#

Available configurations#


Type: boolean

Default: t

Make the client add-on so that it works with other language servers. yamllsis a common one.

Enabled by default.


Type: string

Default: ansible

Path to the ansible executable. $PATH is searched for the executable.


Type: boolean

Default: t

Toggle alias provider when completing module options.


Type: boolean

Default: t

Toggle redirected module provider when completing modules.


Type: (choice (const auto) (const podman) (const docker))

Default: auto

The container engine to be used while running with execution environment. Valid values are auto, podman and docker. For auto it will look for podman then docker.


Type: string

Default: ``

Extra parameters passed to the container engine command. Example: -–net=host


Type: boolean

Default: nil

Enable or disable the use of an execution environment.


Type: string


Specify the name of the execution environment image.


Type: string

Default: ``

Specify any additional parameters for the pull command. Example: --tls-verify=false


Type: (choice (const always) (const missing) (const never) (const tag))

Default: missing

Specify the image pull policy. Valid values are always, missing, never and tag. Setting always will always pull the image when extension is activated or reloaded. Setting missing will pull if not locally available. Setting never will never pull the image and setting tag will always pull if the image tag is latest, otherwise pull if not locally available.


Type: (lsp-repeatable-vector plist)

Default: []

Additonnal volumes to mount in container. The value is a vector of plists. Expected properties are: - src: the name of the local volume or path to be mounted within execution environment - dest: the path where the file or directory are mounted in the container - options: the property is optional, and is a comma-separated list of options. Example: ro,Z


Type: (repeat :tag List of string values string)

Default: (ansible-language-server --stdio)

The command that starts the ansible language server.


Type: string

Default: ``

Path to a custom activate script. It will be used instead of lsp-ansible-python-interpreter-path to run in a Python virtual environment.


Type: string

Default: ``

Path to the python/python3 executable. This setting may be used to make the extension work with ansible and ansible-lint installations in a Python virtual environment.


Type: boolean

Default: t

Toggles use of fully qualified collection names when inserting a module name. Disabling it will only use FQCNs when necessary, that is when the collection is not configured for the task.


Type: boolean

Default: t

Toggle validation provider. If enabled and ansible-lint is disabled, validation falls back to ansible-playbook --syntax-check.


Type: string

Default: ``

Optional command line arguments to be appended to ansible-lint invocation. See ansible-lint documentation.


Type: boolean

Default: t

Enables/disables use of ansible-lint.


Type: string

Default: ansible-lint

Path to the ansible-lint executable. $PATH is searched for the executable.

Last update: July 11, 2024