fix bashls
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
methods:
|
methods:
|
||||||
Archlinux: [system, source]
|
Archlinux: [system, source]
|
||||||
default: [source]
|
default: [source]
|
||||||
|
pkgname:
|
||||||
|
default: bash-language-server
|
||||||
- name: Finalise bashls default facts
|
- name: Finalise bashls default facts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
bashls:
|
bashls:
|
||||||
@@ -20,8 +22,7 @@
|
|||||||
name: bash-language-server
|
name: bash-language-server
|
||||||
global: true
|
global: true
|
||||||
version: latest
|
version: latest
|
||||||
pkgname:
|
pkgname: "{{ bashls.pkgname[os_famly] | default(bashls.pkgname.default) }}"
|
||||||
Archlinux: bash-language-server
|
|
||||||
# }}}
|
# }}}
|
||||||
- name: Configure bashls
|
- name: Configure bashls
|
||||||
when:
|
when:
|
||||||
@@ -33,6 +34,15 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
bashls_imethod: "{{ imethod if imethod in bashls.methods else bashls.methods[0] }}"
|
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
|
- name: Configure bashls source install
|
||||||
when:
|
when:
|
||||||
- bashls_imethod == 'source'
|
- bashls_imethod == 'source'
|
||||||
|
|||||||
Reference in New Issue
Block a user