add ansible and bashls
This commit is contained in:
@@ -2,12 +2,20 @@
|
||||
---
|
||||
- name: Add bashls
|
||||
when:
|
||||
- bashls_configured is undefined
|
||||
- "'bashls' not in __configured"
|
||||
block:
|
||||
- name: Append bash-language-server to pkg_npm
|
||||
- name: Set bashls install method
|
||||
when:
|
||||
- bashls_install_method is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
||||
bashls_install_method: "{% if install_method in bashls_install_methods %}{{ install_method }}{% else %}{{ bashls_install_methods[0] }}{% endif %}"
|
||||
|
||||
- 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:
|
||||
bashls_configured: true
|
||||
__configured: "{{ __configured | combine( { 'bashls': true } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user