start developing module for go_install
not going to be used for a long time Making pkg tasks truly single file
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: bashls
|
||||
## Description: language server for bash (sh compatible)
|
||||
## Version: latest
|
||||
## Methods:
|
||||
## - source (npm)
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add bashls
|
||||
- name: Set bashls default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
bashls:
|
||||
install_methods:
|
||||
- source
|
||||
npm_pkg:
|
||||
name: bash-language-server
|
||||
global: true
|
||||
version: latest
|
||||
# }}}
|
||||
- name: Configure bashls
|
||||
when:
|
||||
- "'bashls' not in __configured"
|
||||
block:
|
||||
@@ -14,9 +31,16 @@
|
||||
when:
|
||||
- bashls_install_method == 'source'
|
||||
block:
|
||||
- name: Set bashls npm_pkg config
|
||||
ansible.builtin.set_fact:
|
||||
bashls_npm_pkg:
|
||||
name: "{{ bashls.npm_pkg.name }}"
|
||||
global: "{{ bashls.npm_pkg.global }}"
|
||||
version: "{{ bashls_version | default(bashls.npm_pkg.version) }}"
|
||||
|
||||
- name: Append bashls to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [bashls.npm_pkg] }}"
|
||||
pkg_npm: "{{ pkg_npm + [bashls_npm_pkg] }}"
|
||||
|
||||
- name: Set bashls_configured
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user