working on more package, almost done

This commit is contained in:
2026-03-27 20:34:40 -06:00
parent 4a638d9dcc
commit 7f00bb70dc
21 changed files with 122 additions and 80 deletions

View File

@@ -15,7 +15,7 @@
npm_pkg:
name: '@ansible/ansible-language-server'
global: true
version: latest
version: "{{ ansible_ls_version | default('latest') }}"
pkg_deps:
- nodejs
# }}}
@@ -39,21 +39,14 @@
loop_var: dep
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
- name: Set ansible_ls npm_pkg config
ansible.builtin.set_fact:
ansible_ls_npm_pkg:
name: "{{ ansible_ls.npm_pkg.name }}"
global: "{{ ansible_ls.npm_pkg.global }}"
version: "{{ ansible_ls_version | default(ansible_ls.npm_pkg.version) }}"
- name: Append ansible ls to pkg_npm
ansible.builtin.set_fact:
pkg_npm: "{{ pkg_npm + [ansible_ls_npm_pkg] }}"
pkg_npm: "{{ pkg_npm + [ansible_ls.npm_pkg] }}"
- name: Finalise ansible_ls source install
ansible.builtin.set_fact:
ansible_ls_install: "{{ ansible_ls_imethod }}={{ ansible_ls_npm_pkg }}"
ansible_ls_install: "{{ ansible_ls_imethod }}={{ ansible_ls.npm_pkg }}"
- name: Set ansible_ls_configured
- name: Finalise ansible_ls configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'ansible_ls': ansible_ls_install } ) }}"