Files
ansible_role_package/tasks/pkgs/bashls.yml
Matthew Stobbs 30313d2858 cleanup
2026-02-25 17:10:20 -07:00

22 lines
706 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add bashls
when:
- "'bashls' not in __configured"
block:
- name: Set bashls install method
when:
- bashls_install_method is undefined
ansible.builtin.set_fact:
bashls_install_method: "{{ install_method if install_method in bashls_install_methods else bashls_install_methods[0] }}"
- name: Append bash-language-server to pkg_npm
when:
- bashls_install_method == 'source'
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + [bashls_npm_pkgname] }}"
- name: Set bashls_configured
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'bashls': true } ) }}"