fix bashls

This commit is contained in:
2026-04-18 12:50:17 -06:00
parent 5782d64f46
commit 471a7101f7

View File

@@ -12,6 +12,8 @@
methods:
Archlinux: [system, source]
default: [source]
pkgname:
default: bash-language-server
- name: Finalise bashls default facts
ansible.builtin.set_fact:
bashls:
@@ -20,8 +22,7 @@
name: bash-language-server
global: true
version: latest
pkgname:
Archlinux: bash-language-server
pkgname: "{{ bashls.pkgname[os_famly] | default(bashls.pkgname.default) }}"
# }}}
- name: Configure bashls
when:
@@ -33,6 +34,15 @@
ansible.builtin.set_fact:
bashls_imethod: "{{ imethod if imethod in bashls.methods else bashls.methods[0] }}"
- name: Configure bashls system install
when:
- bashls_imethod == 'system'
block:
- name: Queue bashls system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [bashls.pkgname] }}"
bashls_install: "{{ bashls_imethod }}={{ bashls.pkgname }}"
- name: Configure bashls source install
when:
- bashls_imethod == 'source'