Squash merge move_to_single_file_pkgs into main

This commit is contained in:
Matthew Stobbs
2026-04-13 14:50:45 -06:00
parent ff740426c8
commit 8dc427f027
373 changed files with 3883 additions and 9963 deletions

View File

@@ -1,13 +1,50 @@
# vim: set filetype=yaml.ansible :
#
## Package: bashls
## Description: language server for bash (sh compatible)
## Version: latest
## Methods: source
## Helpers: npm
---
- name: Add bashls
- name: Set bashls default facts # {{{
ansible.builtin.set_fact:
bashls:
methods:
- source
npm_pkg:
name: bash-language-server
global: true
version: latest
# }}}
- name: Configure 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_imethod is undefined
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
bashls_imethod: "{{ imethod if imethod in bashls.methods else bashls.methods[0] }}"
- name: Configure bashls source install
when:
- bashls_imethod == '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] }}"
- name: Finalise bashls source install
ansible.builtin.set_fact:
bashls_install: "{{ bashls_imethod }}={{ bashls_npm_pkg }}"
- name: Set bashls_configured
ansible.builtin.set_fact:
bashls_configured: true
__configured: "{{ __configured | combine( { 'bashls': bashls_install } ) }}"