Skip to content

Language Server Settings

The following are the default values of the settings provided by the Ansible Language Server:

  • ansible.ansible.path: Path to the ansible executable \ default value: ansible

  • ansible.ansible.useFullyQualifiedCollectionNames: Toggle usage of fully qualified collection names (FQCN) when inserting module names \ default value: true

  • ansible.python.interpreterPath: Path to the python/python3 executable. This settings may be used to make the extension work with ansible and ansible-lint installations in a python virtual environment \ default value: ""

  • ansible.python.activationScript: Path to a custom activation script, which is to be used instead of te settings above to run in a python virtual environment \ default value: ""

  • ansible.executionEnvironment.containerEngine: Container engine to be used while running with execution environment. valid values are 'auto', 'podman' and 'docker'. For 'auto', it will look for 'podman' and then for 'docker' \ default value: auto

  • ansible.executionEnvironment.enabled: Toggle usage of an execution environment \ default value: false

  • ansible.executionEnvironment.image: Name of the execution environment to be used \ default value:

  • ansible.executionEnvironment.pull.policy: Image pull policy to be used. Valid values are 'always', 'missing', 'never' and 'tag'. always will always pull the image when extension is activated or reloaded. 'missing' will pull if not locally available. 'never' will never pull the image and 'tag' will always pull if the image tag is 'latest', otherwise pull if not locally available. \ default value: missing

  • ansible.executionEnvironment.pull.arguments: Specify any additional parameters that should be added to the pull command when pulling an execution environment from a container registry. e.g. '-–tls-verify=false' \ default value: ""

  • ansible.executionEnvironment.containerOptions: Extra parameters passed to the container engine command example: '--net=host' \ default value: ""

  • ansible.completion.provideRedirectModules: Toggle redirected module provider when completing modules \ default value: true

  • ansible.completion.provideModuleOptionAliases: Toggle alias provider when completing module options \ default value: true

  • ansible.validation.enabled: Toggle validation provider. If enabled and ansible-lint is disabled, validation falls back to ansible-playbook --syntax-check \ default value: true

  • ansible.validation.lint.enabled: Toggle usage of ansible-lint \ default value: true

  • ansible.validation.lint.path: Path to the ansible-lint executable \ default value: ansible-lint

  • ansible.validation.lint.arguments: Optional command line arguments to be appended to ansible-lint invocation \ default value: ""

  • ansible.executionEnvironment.volumeMounts:

  • src: The name of the local volume or path to be mounted within execution environment. default value: ""
  • dest: The path where the file or directory are mounted in the container. default value: ""
  • options: The field is optional, and is a comma-separated list of options, such as ro,Z default value: ""